home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
forth
/
compiler
/
fpc
/
source
/
alist.seq
< prev
next >
Wrap
Text File
|
1990-12-16
|
1KB
|
48 lines
\ ALIST.SEQ Assembler listing
dis6805 also
: %.inst ( -- )
linestrt lihere <>
if save> base hex
cr
linestrt cp !
linestrt 0 <# # # # # #> type 2 spaces
inst
restore> base
then lihere =: linestrt ;
: ?.#dis ( a1 n1 -- ) \ disassemble n1 bytes at a1
@> .inst ['] %.inst =
if save> base hex
over cp ! +
begin cp @ over u<
while cr
cp @ 0 <# # # # # #> type 2 spaces
inst
repeat drop
restore> base
cp @ =: linestrt
else 2drop
then ;
: /code ( -- )
['] %.inst is .inst ;
: /codeoff ( -- )
['] noop is .inst ;
' /code alias /cod
' /codeoff alias /nocode
?cs: =: dumpseg
/codeoff
: .alist ( -- )
cr ." /code = Enable the listing of assembly code."
cr ." /codeoff = Disable the listing of assembly code ..... (default)."
;