mirror of
https://github.com/yourtion/30dayMakeOS.git
synced 2026-04-25 19:20:43 +08:00
Add 28 day code
This commit is contained in:
1
28_day/hello5/!cons_9x.bat
Normal file
1
28_day/hello5/!cons_9x.bat
Normal file
@@ -0,0 +1 @@
|
||||
command
|
||||
1
28_day/hello5/!cons_nt.bat
Normal file
1
28_day/hello5/!cons_nt.bat
Normal file
@@ -0,0 +1 @@
|
||||
cmd.exe
|
||||
5
28_day/hello5/Makefile
Normal file
5
28_day/hello5/Makefile
Normal file
@@ -0,0 +1,5 @@
|
||||
APP = hello5
|
||||
STACK = 1k
|
||||
MALLOC = 0k
|
||||
|
||||
include ../app_make.txt
|
||||
20
28_day/hello5/hello5.nas
Normal file
20
28_day/hello5/hello5.nas
Normal file
@@ -0,0 +1,20 @@
|
||||
[FORMAT "WCOFF"]
|
||||
[INSTRSET "i486p"]
|
||||
[BITS 32]
|
||||
[FILE "hello5.nas"]
|
||||
|
||||
GLOBAL _HariMain
|
||||
|
||||
[SECTION .text]
|
||||
|
||||
_HariMain:
|
||||
MOV EDX,2
|
||||
MOV EBX,msg
|
||||
INT 0x40
|
||||
MOV EDX,4
|
||||
INT 0x40
|
||||
|
||||
[SECTION .data]
|
||||
|
||||
msg:
|
||||
DB "hello, world", 0x0a, 0
|
||||
1
28_day/hello5/make.bat
Normal file
1
28_day/hello5/make.bat
Normal file
@@ -0,0 +1 @@
|
||||
..\..\z_tools\make.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
|
||||
Reference in New Issue
Block a user