Rev 4664 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4664 | Rev 6890 | ||
---|---|---|---|
Line 8... | Line 8... | ||
8 | 8 | ||
Line 9... | Line 9... | ||
9 | format binary as "" ; Binary file format without extension |
9 | format binary as "" ; Binary file format without extension |
Line 10... | Line 10... | ||
10 | 10 | ||
Line 11... | Line 11... | ||
11 | use32 ; Tell compiler to use 32 bit instructions |
11 | use32 ; Tell compiler to use 32 bit instructions |
Line 12... | Line 12... | ||
12 | 12 | ||
13 | org 0x0 ; the base address of code, always 0x0 |
13 | org 0 ; the base address of code, always 0x0 |
14 | 14 | ||
15 | ; The header |
15 | ; The header |
16 | 16 | ||
17 | db 'MENUET01' |
17 | db 'MENUET01' |
18 | dd 0x01 |
18 | dd 1 |
Line 19... | Line 19... | ||
19 | dd START |
19 | dd START |
Line 20... | Line 20... | ||
20 | dd I_END |
20 | dd I_END |
Line 130... | Line 130... | ||
130 | db "Congratulations! ", 0 |
130 | db "Congratulations! ", 0 |
Line 131... | Line 131... | ||
131 | 131 | ||
Line 132... | Line 132... | ||
132 | title db "Example application", 0 |
132 | title db "Example application", 0 |
- | 133 | ||
- | 134 | I_END: |
|
- | 135 | rb 4096 |
|
- | 136 | align 16 |
|
- | 137 | STACKTOP: |
|
Line 133... | Line 138... | ||
133 | 138 | ||
134 | I_END: |
139 | MEM: |
135 | 140 | ||
136 | ; The area after I_END is free for use as the application memory, |
141 | ; The area after I_END is free for use as the application memory, |
Line 141... | Line 146... | ||
141 | ; 0x00000 - Start of compiled image |
146 | ; 0x00000 - Start of compiled image |
142 | ; I_END - End of compiled image |
147 | ; I_END - End of compiled image |
143 | ; |
148 | ; |
144 | ; + Free for use in the application |
149 | ; + Free for use in the application |
145 | ; |
150 | ; |
146 | ; 0x7ff00 - Start of stack area |
151 | ; STACKTOP - Start of stack area - defined in the header |
147 | ; 0x7fff0 - End of stack area - defined in the header |
152 | ; STACKTOP-4096 - End of stack area |
148 | ; |
153 | ; |
149 | ; + Free for use in the application |
154 | ; + Free for use in the application |
150 | ; |
155 | ; |
151 | ; 0xFFFFF - End of freely useable memory - defined in the header |
156 | ; MEM - End of freely useable memory - defined in the header |
152 | ; |
157 | ; |
153 | ; All of the the areas can be modified within the application with a |
158 | ; All of the the areas can be modified within the application with a |
154 | ; direct reference. |
159 | ; direct reference. |
155 | ; For example, mov [0x80000],byte 1 moves a byte above the stack area. |
- | |
156 | 160 | ; For example, mov [STACKTOP-1],byte 1 moves a byte above the stack area. |
|
- | 161 | ||
157 | 162 |