MEGA65 FORUM

Delete

(Leave this as-is, it’s a trap!)

To delete this post you must be either the original author or a designated moderator.
The content of the post will be removed but the name and date will remain.

  • The post will be removed completely from the thread, rather than blanked
  • Only posts on the last page of the thread can be removed completely (so as to not break permalinks)

RE[6]: Built in ML Monitor

Gurce

I thought I'd try chase up what gave me the impression of a JMPF. I'm guessing it was the mention of a far-jump here:

http://c65gs.blogspot.com.au/2015/04/about-c65gs-memory.html

Although, looking more closely, it turns out that Paul mentions you need to do "SED, SED, then JMP low_word, high_word" to make this happen.

So looks like I was mistaken, there's no JMPF, it was just my misunderstanding.

Still, typing such a far-jump via the in-built assembler would be a bit tricky too, right? So my little example would still be a little problematic.

MONITOR
A 80C000 INC $D020
80C003 INC $D021
80C006 SED
80C007 SED
80C008 JMP $C000
80C00B how to type ".word $0080" here?
X
SYS 49152

Perhaps you could insert the $0080 value into the desired $80c00b address manually by entering the byte values there via the monitor, but again, that feels a little cumbersome. And also, when you try disassemble that region of code, it'll look garbled too, with the extra byte after the JMP interpreted as an opcode.

Anyway, I'm sure the in-built monitor will be fine for a bit of manual tinkering, but once you really want to sink your teeth into it, and use new techniques like the far-jump, then an a cross-compiler, such as the ones mentioned before, is probably the way to go.

Your friendly neighbourhood moderators: Deft, gardners, MARCOM