From c5b573cf83b8848657ae86be40ba3b1ec24c6813 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sun, 17 Jan 2021 10:49:23 -0800 Subject: 7535 --- baremetal/101screen.subx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'baremetal/101screen.subx') 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 -- cgit 1.4.1-2-gfad0