diff options
Diffstat (limited to 'baremetal/101screen.subx')
-rw-r--r-- | baremetal/101screen.subx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/baremetal/101screen.subx b/baremetal/101screen.subx index 5a26a86a..cac9593e 100644 --- a/baremetal/101screen.subx +++ b/baremetal/101screen.subx @@ -16,12 +16,12 @@ pixel-on-real-screen: # x: int, y: int, color: int 8b/-> *(ebp+8) 0/r32/eax 3d/compare-eax-and 0/imm32 7c/jump-if-< $pixel-on-real-screen:end/disp8 - 3d/compare-eax-and 0x400/imm32/1024 + 3d/compare-eax-and 0x400/imm32/screen-width=1024 7d/jump-if->= $pixel-on-real-screen:end/disp8 8b/-> *(ebp+0xc) 0/r32/eax 3d/compare-eax-and 0/imm32 7c/jump-if-< $pixel-on-real-screen:end/disp8 - 3d/compare-eax-and 0x300/imm32/768 + 3d/compare-eax-and 0x300/imm32/screen-height=768 7d/jump-if->= $pixel-on-real-screen:end/disp8 # eax = y*1024 + x 8b/-> *(ebp+0xc) 0/r32/eax |