home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
forth
/
compiler
/
fpc
/
tcom
/
debugger
/
dbgbase.seq
< prev
next >
Wrap
Text File
|
1991-04-10
|
2KB
|
41 lines
\\ DBGBASE.SEQ Part of a Forth code debugger by Mike Mayo
─────────────────────────────────────────────────────────────────────────────
$Header: F:/tcom/debugger/logs/dbgbase.sev 1.0 23 Apr 1991 11:00:24 MikeM $
─────────────────────────────────────────────────────────────────────────────
─────────────────────────────────────────────────────────────────────────────
$Log: F:/tcom/debugger/logs/dbgbase.sev $
\
\ Rev 1.0 23 Apr 1991 11:00:24 MikeM
\ Initial revision.
─────────────────────────────────────────────────────────────────────────────
{
10 constant dbtop \ Debugger top line on screen
60 value rboxcol \ Column for left side of register box
dbtop value browselines \ Number of lines, at top of screen, for the browser
0 value showingdebug
0 value next-break
0 value nextinline
2variable rplace \ Place to start showing registers
2variable dplace \ Place to start showing disassembly
: rcr ( -- ) \ cr for the register box
at? nip 1+ rboxcol 1+ swap at ;
: dcr ( -- ) \ cr for the disassembly box
at? nip 1+ 1 swap at ;
}
─────────────────────────────────────────────────────────────────────────────
words to allow setting the debugging registers
─────────────────────────────────────────────────────────────────────────────
{
: reg! ( a1 | <name> -- ) \ defining word to make register
\ assignment words
create , does> @ ! ;
: reg@ ( a1 | <name> -- ) \ defining word to make register
\ fetch words
create , does> @ @ ;