mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-06 02:31:01 +11:00
b21be43535
Also, move doc to doc/asm.txt. Also, fix the pcat recipe which was broken since the overlay change. I hadn't noticed it because I didn't have to rebuild the MBR.
16 lines
506 B
Plaintext
16 lines
506 B
Plaintext
: OPrm CREATE C, DOES> C@ A, SWAP 3 LSHIFT OR A, ;
|
|
0x8a OPrm MOVr[], 0x8b OPrm MOVx[],
|
|
0x3a OPrm CMPr[], 0x3b OPrm CMPx[],
|
|
|
|
: OPmr CREATE C, DOES> C@ A, 3 LSHIFT OR A, ;
|
|
0x88 OPmr MOV[]r, 0x89 OPmr MOV[]x,
|
|
|
|
: OPrm+ ( r m off ) CREATE C, DOES>
|
|
C@ A, ROT 3 LSHIFT ROT OR 0x40 OR A, A, ;
|
|
0x8a OPrm+ MOVr[]+, 0x8b OPrm+ MOVx[]+,
|
|
0x3a OPrm+ CMPr[]+, 0x3b OPrm+ CMPx[]+,
|
|
|
|
: OPm+r ( m off r ) CREATE C, DOES>
|
|
C@ A, 3 LSHIFT ROT OR 0x40 OR A, A, ;
|
|
0x88 OPm+r MOV[]+r, 0x89 OPm+r MOV[]+x,
|