projects
/
ld45_start_nothing
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fixed the 32bit version
[ld45_start_nothing]
/
src
/
main.asm
1
; vi:filetype=nasm ts=8 sts=8 sw=8:
2
bits 32
3
extern init_gfx
4
extern clear
5
extern slow_sprite
6
extern wait_vsync
7
extern swap_buffers
8
9
; this is placed at the beginning of our binary at 1mb (see game.ld)
10
; and it's what gets executed directly by the boot loader
11
section .startup
12
jmp main
13
14
; start of main
15
section .text
16
main:
17
call init_gfx
18
19
main_loop:
20
call clear
21
22
push dword 100
23
push dword 160
24
push dword 0
25
call slow_sprite
26
add esp, 16
27
28
call wait_vsync
29
call swap_buffers
30
jmp main_loop