Compare commits
41
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2f5853eef7 | ||
|
|
bb93d6b4c0 | ||
|
|
2654c2a900 | ||
|
|
3e15b62d4e | ||
|
|
3cfb53f3f1 | ||
|
|
001b957967 | ||
|
|
3c9ac218b0 | ||
|
|
38c9c2790f | ||
|
|
b58d2d4077 | ||
|
|
6671377c58 | ||
|
|
5767db167f | ||
|
|
0bdfd61109 | ||
|
|
7401e51bba | ||
|
|
54c734b3bd | ||
|
|
6bc86d903a | ||
|
|
80801fe5ef | ||
|
|
31b8a6713a | ||
|
|
1d5723e173 | ||
|
|
c7e16a925b | ||
|
|
0b879e4097 | ||
|
|
2c1ff14046 | ||
|
|
3391cfcd75 | ||
|
|
cfc1c04e4e | ||
|
|
caea8b7436 | ||
|
|
26d3a4d4f4 | ||
|
|
786adfdb1c | ||
|
|
84636799b6 | ||
|
|
aa2cbe4ad8 | ||
|
|
8301d5988a | ||
|
|
dbd4865f14 | ||
|
|
8f1b970a2f | ||
|
|
ddca02d8a8 | ||
|
|
a3d6cb64b5 | ||
|
|
9816111f38 | ||
|
|
f2e5c830b3 | ||
|
|
60e7b6209f | ||
|
|
33b7886e70 | ||
|
|
daf4168129 | ||
|
|
4bce47209a | ||
|
|
af5a750031 | ||
|
|
8e0fdf0d28 |
@@ -1,21 +0,0 @@
|
|||||||
# Memory Map
|
|
||||||
|
|
||||||
To not have to allocate a ton of things at run time the Standard Library uses a static memory map for some purposes
|
|
||||||
|
|
||||||
## Overview
|
|
||||||
|
|
||||||
| Start | Use |
|
|
||||||
| ---- | ---- |
|
|
||||||
| `0x0` | Reset Vector |
|
|
||||||
| `0x16` | Zero Page |
|
|
||||||
| `0x100` | User Code |
|
|
||||||
| `?` | Library Code |
|
|
||||||
| `0x1_0000` | LUTs |
|
|
||||||
| `?` | heap |
|
|
||||||
| `0xXXF0_0000` | Stack |
|
|
||||||
| `0xXXFF_0000` | quick access |
|
|
||||||
|
|
||||||
## Zero Page
|
|
||||||
Some values are needed not often enough to get their own special register, but often enough that it makes sense to keep them at a quickly accessible location.
|
|
||||||
This is what the zero page is for. its position in memory allows us to load them into a register with a single instruction.
|
|
||||||
|
|
||||||
@@ -3,8 +3,7 @@
|
|||||||
This is a standard library for symphony.
|
This is a standard library for symphony.
|
||||||
It is both intended as a practical toolkit to develop more complex software as well as a teaching resource.
|
It is both intended as a practical toolkit to develop more complex software as well as a teaching resource.
|
||||||
|
|
||||||
If you just want to use the standard library [[stdlib.asm]] is your main header, include it after your code.
|
If you just want to use the standard library [[src/stdlib.asm]] is your main header, include it after your code.
|
||||||
You also need to include [[globals.asm]] as the first line in your assembly file.
|
|
||||||
|
|
||||||
If you are using it as a learning resource have a look at the [teaching folder](teaching).
|
If you are using it as a learning resource have a look at the [teaching folder](teaching).
|
||||||
|
|
||||||
|
|||||||
-10
@@ -1,10 +0,0 @@
|
|||||||
jmp 0x100
|
|
||||||
|
|
||||||
@0x10
|
|
||||||
screen:
|
|
||||||
frambuffer_ptr: U32 0x0
|
|
||||||
size: U32 0x0
|
|
||||||
position_xy: U32 0x0
|
|
||||||
mode: U32 0x0
|
|
||||||
|
|
||||||
@0x100
|
|
||||||
Reference in New Issue
Block a user