keyboard interrupt (untested)
[ld45_start_nothing] / src / main.asm
1 ; vi:filetype=nasm ts=8 sts=8 sw=8:
2         bits 32
3 %include "gfx.inc"
4
5         ; this is placed at the beginning of our binary at 1mb (see game.ld)
6         ; and it's what gets executed directly by the boot loader
7         section .startup
8         jmp main
9
10         ; start of main
11         section .text
12 main:
13         call init_gfx
14
15 main_loop:
16         call clear
17
18         push dword 0
19         push dword 100
20         push dword 160
21         push dword FRAMEBUF_ADDR
22         call sprsheet
23         add esp, 16
24
25         call wait_vsync
26         call swap_buffers
27         jmp main_loop