Mirror of CollapseOS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
559B

  1. : OPrm CREATE C, DOES> C@ A, SWAP 3 LSHIFT OR A, ;
  2. 0x8a OPrm MOVr[], 0x8b OPrm MOVx[],
  3. : OPrm+ ( r m off ) CREATE C, DOES>
  4. C@ A, ROT 3 LSHIFT ROT OR 0x40 OR A, A, ;
  5. 0x8a OPrm+ MOVr[]+, 0x8b OPrm+ MOVx[]+,
  6. : MOVri, SWAP 0xb0 OR A, A, ;
  7. : MOVxI, SWAP 0xb8 OR A, A,, ;
  8. : MOVsx, 0x8e A, SWAP 3 LSHIFT OR 0xc0 OR A, ;
  9. : MOVxm, 0x8b A, SWAP 3 LSHIFT 0x6 OR A, A,, ;
  10. : INT, 0xcd A, A, ;
  11. : ADDAXI, 0x05 A, A,, ; : ADDALi, 0x04 A, A, ;
  12. : SUBxi, 0x83 A, SWAP 0xe8 OR A, A, ;
  13. : JMPr, 0xff A, 7 AND 0xe0 OR A, ;
  14. : JMPf, ( seg off ) 0xea A, SPLITB A, A, A,, ;