mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-27 17:18:05 +11:00
07e50313c7
MBR code now strictly loads OS code into memory and jumps into it. Now, I've got to consolidate my assembler code, modrm logic is messed up.
13 lines
414 B
Plaintext
13 lines
414 B
Plaintext
: MOVri, SWAP 0xb0 OR A, A, ;
|
|
: MOVrI, SWAP 0xb0 OR A, SPLITB A, A, ;
|
|
: MOVsx, 0x8e A, SWAP MODRMrr A, ;
|
|
: INT, 0xcd A, A, ;
|
|
( no argument, flow ops are special )
|
|
: JMP8, 0xeb A, ; : JMP16, 0xe9 A, ; : JZ, 0x74 A, ;
|
|
: JMPr, 0xff A, 7 AND 0xe0 OR A, ;
|
|
: LODSB, 0xac A, ; : CLI, 0xfa A, ; : HLT, 0xf4 A, ;
|
|
: STI, 0xfb A, ;
|
|
: ORrr, 0x08 A, MODRMrr A, ;
|
|
: XORxx, 0x31 A, MODRMrr A, ;
|
|
: CLD, 0xfc A, ; : STD, 0xfd A, ;
|