projects
/
ld45_start_nothing
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
converted to protected mode, not done
[ld45_start_nothing]
/
src
/
main.asm
diff --git
a/src/main.asm
b/src/main.asm
index
c0af0ad
..
4b2a11a
100644
(file)
--- a/
src/main.asm
+++ b/
src/main.asm
@@
-1,6
+1,12
@@
; vi:filetype=nasm ts=8 sts=8 sw=8:
; 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
call init_gfx
@@
-11,11
+17,8
@@
main_loop:
push word 160
push word 0
call slow_sprite
push word 160
push word 0
call slow_sprite
+ add esp, 6
call wait_vsync
call swap_buffers
jmp main_loop
call wait_vsync
call swap_buffers
jmp main_loop
-
-%include "gfx.asm"
-
-%include "data/sprsheet.inc"