Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma CRT ZCRT
- #include <drivers/drv_fs.c>
- #include <drivers/drv_ccterm.c>
- void main()
- {
- preserve EBX
- term_clear();
- //Load Initial code from filesystem. Put the code after __PROGRAMSIZE__ in another page. Remap page 0 and jump to code.
- MOV *(FS+5), "main.bin"
- term_write("LAWL")
- MOV *(FS+1), EBX
- register float emptyPage;
- emptyPage = __PROGRAMSIZE__/128;
- fceil emptyPage;
- mov *(FS+6),emptyPage*128
- SMAP 0,emptyPage
- jmp 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement