(uxncore) Padded opc name

This commit is contained in:
Devine Lu Linvega 2024-06-29 10:12:40 -08:00
parent efe1a1db52
commit 2c163b67f6
1 changed files with 16 additions and 6 deletions

View File

@ -27,6 +27,7 @@
#2018 DEO
[ LIT2 "* 18 ] DEO
[ LIT2 "/ 18 ] DEO
#2018 DEO
( | body )
;dict/break <pstr>
#0a18 DEO
@ -36,13 +37,22 @@
( | main )
DUP #1f AND #00 SWP #0004 MUL2 ;opcodes ADD2 <pstr>
( | modes )
DUP #20 AND #00 EQU ?{
[ LIT2 "2 18 ] DEO }
DUP #40 AND #00 EQU ?{
[ LIT2 "r 18 ] DEO }
[ LITr 00 ] DUP #20 AND #00 EQU ?{
[ LIT2 "2 18 ] DEO
INCr }
DUP #80 AND #00 EQU ?{
[ LIT2 "k 18 ] DEO }
POP JMP2r
[ LIT2 "k 18 ] DEO
INCr }
DUP #40 AND #00 EQU ?{
[ LIT2 "r 18 ] DEO
INCr }
POP
( | pad )
#fd STHr ADD
&>w ( -- )
DUP ?{ POP JMP2r }
#2018 DEO
INC !&>w
@<cbyte> ( byte -- )
[ LIT2 "0 18 ] DEO