6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Thu May 09, 2024 7:41 pm

All times are UTC




Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Fri Feb 17, 2023 8:54 pm 
Offline

Joined: Mon Jan 19, 2004 12:49 pm
Posts: 683
Location: Potsdam, DE
Hmm, that's something I had not considered. Time for a rethink :D

Neil


Top
 Profile  
Reply with quote  
PostPosted: Wed Feb 22, 2023 8:16 am 
Offline

Joined: Tue Apr 20, 2010 4:02 pm
Posts: 31
You will probably also need to print a list of all currently defined breakpoints and allow clearing some of them.
The best option probably is to have a list of breakpoint addresses and search a breakpoint based on it's address. The same table will contain the code of the instruction you replaced with BRK.


Top
 Profile  
Reply with quote  
PostPosted: Wed Feb 22, 2023 5:03 pm 
Offline

Joined: Wed Jan 01, 2003 6:32 pm
Posts: 32
You might want to have a look on my DEBUG.COM, which offers most of the discussed features with the notable exception of stepping through ROM code. The program uses the BRK method and enables to set up tp 8 breakpoints [0..7]. The source can be found here: https://github.com/Dietrich-L/CPM-65/blob/main/SYSPROGS/DEBUG.ASM

Command syntax :

Code:
        DEBUG V1.7                     (c) 14.6.1990
Command Summary:
 Dnnnn,mmmm dump memory          Fnnnn,mmmm,cc fill memory
 Gnnnn      go from nnnn         Znn        wait for nn/10 s
 Lnnnn,mmmm list mnemonics       Ennnn,bb,bb.. enter bytes
 Rfilename.ext read file         Wfilename.ext write file
 Nfilename.ext FCB1=filename
 Cnnnn,<string>     enter string Snnnn,mmmm,bb,..   search bytes
 Tdd        trace dd steps       Xr,bb      set register
 Jdd        jump dd opcodes      Mn,m,j     move to n from m,j
 Bd,nnnn    set breakpoint       Kd         kill breakpoint
 ?          prints this screen   ;          command separator
 /dd        repeat dd times      Q          quit to CP/M


The progam installs itself in high memory at $C000, the code to be analyzed can be anywhere in the available RAM.

Enjoy

Dietrich

_________________
My system: Elektor Junior Computer, GitHub https://github.com/Dietrich-L


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2

All times are UTC


Who is online

Users browsing this forum: Hermes and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: