Added modes to LIT opcode
This commit is contained in:
parent
23d293fb48
commit
809302fe92
|
@ -104,11 +104,13 @@
|
|||
LDAk DUP #80 NEQ SWP #c0 NEQ AND ?{
|
||||
<print-2-byte>
|
||||
;opcodes <pstr>
|
||||
<print-mode>/no-keep
|
||||
#2018 DEO
|
||||
INC2 LDAk !<phex>/b }
|
||||
LDAk DUP #a0 NEQ SWP #e0 NEQ AND ?{
|
||||
<print-3-byte>
|
||||
;opcodes <pstr>
|
||||
<print-mode>/no-keep
|
||||
#2018 DEO
|
||||
INC2 LDA2k <phex>
|
||||
INC2 JMP2r }
|
||||
|
@ -117,10 +119,11 @@
|
|||
( >> )
|
||||
|
||||
@<print-mode> ( addr* -- )
|
||||
LDAk #20 AND #00 EQU ?{
|
||||
[ LIT2 "2 18 ] DEO }
|
||||
LDAk #80 AND #00 EQU ?{
|
||||
[ LIT2 "k 18 ] DEO }
|
||||
&no-keep ( addr* -- )
|
||||
LDAk #20 AND #00 EQU ?{
|
||||
[ LIT2 "2 18 ] DEO }
|
||||
LDAk #40 AND #00 EQU ?{
|
||||
[ LIT2 "r 18 ] DEO }
|
||||
JMP2r
|
||||
|
|
Loading…
Reference in New Issue