<dbg>dis > src/kickstart.a65:2605 > 2595: bcc utility_end_of_list > 2596: > 2597: ; Display utility and assign number > 2598: ldy #39 > 2599: lda #$20 > 2600: um2: sta msg_utility_item,y ; **WARNING** this replaces the null terminator with a space? > 2601: dey > 2602: cpy #2 > 2603: bne um2 > 2604: iny > 2605: inc zptempv > 2606: lda zptempv > 2607: sta msg_utility_item > 2608: ldz #4
Let's say you're within a loop such as the um2: loop above and you want to break immediately after it.
You can now type "break :2604" (i.e., the source-code's line-number), and then the "c" (continue) command.
The continue command will then wait/loop until the breakpoint is hit and return the prompt to back you for you to continue your debugging from this point on.
Ah well, a bit of a shame it can't run on mac now, but at least I can still talk over the #unix socket to LGB's xemu emulator, that's enough for my debugging efforts for now I reckon.
--
You received this message because you are subscribed to the Google Groups "MEGA65 Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to c65gs-development+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to c65gs-developm...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to c65gs-development+unsubscribe@googlegroups.com.
It permits you to watch a memory dump. This can be handy if you want to continuously keep track of a chunk of memory while stepping through code that iteratively tries to alter that chunk.
Usage example:
To add a dump watch at the address 0x07c0, for 0x40 bytes (yeah, oddly, the byte-count is in hex presently, sorry).
<dbg>wdump 7c0 40 watch added!
Then the next time you see your watchlist (via either the "watches" command, or via "dis" while the autowatch flag is set):
<dbg>watches
---------------------------------------
#1: WORD zptempp: AEFD
#2: WORD zptempp2: 07C0
#3: BYTE screenrow: 0C
#4: STRING ae3c: ALT=UTIL MENU CTRL=HOLD-BOOT SHIFT=DEBUG
#5: DUMP 7c0:
:00007C0 0C 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00 | .. . . . . . . .
:00007D0 20 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00 | . . . . . . . .
:00007E0 20 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00 | . . . . . . . .
:00007F0 20 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00 | . . . . . . . .
---------------------------------------
NOTE: You can use a symbol-name in place of the address. For example:
<dbg>wdump msg_checkpoint_eom 20 watch added! <dbg>watches --------------------------------------- #1: WORD zptempp: AEFD #2: WORD zptempp2: 07C0 #3: BYTE screenrow: 0C #4: STRING ae3c: ALT=UTIL MENU CTRL=HOLD-BOOT SHIFT=DEBUG #5: DUMP 7c0: :00007C0 0C 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00 | .. . . . . . . . :00007D0 20 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00 | . . . . . . . . :00007E0 20 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00 | . . . . . . . . :00007F0 20 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00 | . . . . . . . . #6: DUMP msg_checkpoint_eom: :000AE06 52 45 2D 54 52 59 49 4E 47 20 54 4F 20 52 45 41 | RE-TRYING TO REA :000AE16 44 20 4D 42 52 00 4D 45 47 41 36 35 20 4D 45 47 | D MBR.MEGA65 MEG ---------------------------------------
--
To unsubscribe from this group and stop receiving emails from it, send an email to c65gs-developm...@googlegroups.com.
# ---------------------- # default initialisation # ---------------------- autocls autowatch # ------------------------------------------------------------- # my watchlist for debugging my present issue # (this saves me from re-typing it every time I restart m65dbg) # ------------------------------------------------------------- ww zptempp ww zptempp2 wb screenrow wdump 7c0 40 |
$ m65dbg m65dbg - v1.00 ====== error 2 opening /dev/ttyS4: No such file or directory - Type 'help' for new commands, '?'/'h' for raw commands. Loading "kickstart.list"... Loading "kickstart.map"... Loading "/Users/gurce/.m65dbg_init"... - autocls is turned on. - autowatch is turned on. watch added! (WORD : zptempp) watch added! (WORD : zptempp2) watch added! (BYTE : screenrow) watch added! (DUMP : 7c0 40)
--
You received this message because you are subscribed to the Google Groups "MEGA65 Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to c65gs-development+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to c65gs-developm...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to c65gs-development+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to c65gs-development+unsubscribe@googlegroups.com.