This commit is contained in:
parent
cd411f0901
commit
d418bc0c97
10
timer.subx
10
timer.subx
|
@ -351,10 +351,10 @@ timer-interrupt-handler:
|
|||
b0/copy-to-al 0x20/imm8
|
||||
e6/write-al-into-port 0x20/imm8
|
||||
31/xor %eax 0/r32/eax
|
||||
# ecx = *Current-color
|
||||
8b/-> *Current-color 1/r32/ecx
|
||||
# increment *Current-color
|
||||
81 0/subop/add *Current-color 0x01010101/imm32
|
||||
# ecx = *Timer-current-color
|
||||
8b/-> *Timer-current-color 1/r32/ecx
|
||||
# update *Timer-current-color
|
||||
81 0/subop/add *Timer-current-color 0x01010101/imm32
|
||||
# eax = *Video-memory + 0x1200 (a few rows down from top, around middle of screen)
|
||||
8b/-> *Video-memory-addr 0/r32/eax
|
||||
05/add-to-eax 0x1200/imm32
|
||||
|
@ -432,7 +432,7 @@ Video-memory-addr:
|
|||
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
# }}}
|
||||
|
||||
Current-color:
|
||||
Timer-current-color:
|
||||
0/imm32
|
||||
|
||||
# vim:ft=subx
|
||||
|
|
Loading…
Reference in New Issue