And call into c from assembly
This commit is contained in:
@@ -15,6 +15,8 @@ print_word db 'Hahaha',0
|
|||||||
section .text
|
section .text
|
||||||
|
|
||||||
extern get_vram_offset
|
extern get_vram_offset
|
||||||
|
extern c_entry
|
||||||
|
global write_to_coord
|
||||||
|
|
||||||
global boot
|
global boot
|
||||||
mov esp, stack + stack_size ;stack is stack-size bytes higher than highest uninitialized memory
|
mov esp, stack + stack_size ;stack is stack-size bytes higher than highest uninitialized memory
|
||||||
@@ -51,6 +53,8 @@ main:
|
|||||||
call write_to_coord
|
call write_to_coord
|
||||||
add esp, 12
|
add esp, 12
|
||||||
|
|
||||||
|
call c_entry
|
||||||
|
|
||||||
jmp halt
|
jmp halt
|
||||||
|
|
||||||
halt:
|
halt:
|
||||||
|
|||||||
Reference in New Issue
Block a user