converted to protected mode, not done
[ld45_start_nothing] / src / main.asm
index c0af0ad..4b2a11a 100644 (file)
@@ -1,6 +1,12 @@
 ; vi:filetype=nasm ts=8 sts=8 sw=8:
-       bits 16
-       org 7e00h ; that's where our boot loader puts us (see src/boot/boot.asm)
+       bits 32
+       section .text
+
+       extern init_gfx
+       extern clear
+       extern slow_sprite
+       extern wait_vsync
+       extern swap_buffers
 
        call init_gfx
 
@@ -11,11 +17,8 @@ main_loop:
        push word 160
        push word 0
        call slow_sprite
+       add esp, 6
 
        call wait_vsync
        call swap_buffers
        jmp main_loop
-
-%include "gfx.asm"
-
-%include "data/sprsheet.inc"