Compare commits

..
41 Commits
Author SHA1 Message Date
ShatteredMINT 2f5853eef7 fix path to stdlib.asm 2026-09-03 20:38:29 +02:00
ShatteredMINT bb93d6b4c0 add examples directory 2026-09-03 20:38:29 +02:00
ShatteredMINT 2654c2a900 add tests folder 2026-09-03 20:38:29 +02:00
ShatteredMINT 3e15b62d4e move assembly files into src directory 2026-09-03 20:38:29 +02:00
Michał Isalski 3cfb53f3f1 Fixed at-address 2026-09-03 20:38:29 +02:00
Michal Isalski 001b957967 Added a shift conversion LUT and finished read_line (except Writeback) 2026-09-03 20:38:29 +02:00
Michał Isalski 3c9ac218b0 Added storing shift status 2026-09-03 20:38:21 +02:00
Michal Isalski 38c9c2790f Made read_line compliant to new doc guidelines 2026-09-03 20:38:21 +02:00
Michal Isalski b58d2d4077 One instruction less by using another register 2026-09-03 20:38:21 +02:00
Michal Isalski 6671377c58 Added handling for skipping non-renderable characters
Added handling for backspace character
2026-09-03 20:38:21 +02:00
Michał Isalski 5767db167f Added read_line function 2026-09-03 20:38:21 +02:00
Michal Isalski 0bdfd61109 Fixed swapped pop instructions 2026-09-03 20:38:15 +02:00
Michal Isalski 7401e51bba Made find_index conform to new doc guidelines 2026-09-03 20:38:15 +02:00
Michał Isalski 54c734b3bd pleegwat's code review fixes 2026-09-03 20:38:15 +02:00
Michał Isalski 6bc86d903a Added comment about predicate context 2026-09-03 20:38:15 +02:00
Michał Isalski 80801fe5ef Tested and fixed stride->shift conversion missing 2026-09-03 20:38:15 +02:00
Michal Isalski 31b8a6713a Reduced operations to get -1 in register 2026-09-03 20:38:15 +02:00
Michal Isalski 1d5723e173 Fixed the predicate return address 2026-09-03 20:38:15 +02:00
Michal Isalski c7e16a925b Added find_index array function 2026-09-03 20:38:15 +02:00
Michał Isalski 0b879e4097 Added comment about predicate context 2026-09-03 20:37:42 +02:00
Michał Isalski 2c1ff14046 Tested and fixed stride->shift conversion missing 2026-09-03 20:37:42 +02:00
Michal Isalski 3391cfcd75 Reduced operations to get -1 in register 2026-09-03 20:37:42 +02:00
Michal Isalski cfc1c04e4e Fixed the predicate return address 2026-09-03 20:37:42 +02:00
Michal Isalski caea8b7436 Added find_index array function 2026-09-03 20:37:42 +02:00
ShatteredMINT 26d3a4d4f4 clean up confusion about function template 2026-09-02 20:49:22 +02:00
ShatteredMINT 786adfdb1c Merge pull request 'Changed docs of math functions to conform to new guidelines' (#12) from Micha_i/symphony_stdlib:math-functions-docs into main
Reviewed-on: #12
2026-09-02 11:46:14 +02:00
Michał Isalski 84636799b6 Changed docs of math functions to conform to new guidelines 2026-09-02 11:44:30 +02:00
ShatteredMINT aa2cbe4ad8 Merge pull request 'Add basic meta documentation' (#11) from meta-documentation into main
Documentation efforts are ongoing but this should be good enough for now
2026-09-02 11:39:25 +02:00
ShatteredMINT 8301d5988a create teaching directory 2026-09-02 11:32:46 +02:00
ShatteredMINT dbd4865f14 change stack start 2026-09-02 11:31:52 +02:00
ShatteredMINT 8f1b970a2f remove mention of non existent file 2026-09-02 11:31:33 +02:00
ShatteredMINT ddca02d8a8 relax r7 requirement for result stack 2026-09-02 11:21:03 +02:00
ShatteredMINT a3d6cb64b5 remove duplicate documentation from stdlib.asm 2026-09-02 11:17:18 +02:00
ShatteredMINT 9816111f38 clarify stack arguments 2026-09-01 14:08:20 +02:00
ShatteredMINT f2e5c830b3 explain inline comment 2026-09-01 13:48:12 +02:00
ShatteredMINT 60e7b6209f basic contribution guidelines 2026-09-01 13:21:17 +02:00
ShatteredMINT 33b7886e70 add arrays to readme 2026-09-01 13:07:13 +02:00
ShatteredMINT daf4168129 format calling convention 2026-08-31 10:17:25 +02:00
ShatteredMINT 4bce47209a fix remaining links 2026-08-31 10:12:57 +02:00
ShatteredMINT af5a750031 link test 2026-08-31 10:10:10 +02:00
ShatteredMINT 8e0fdf0d28 start readme 2026-08-31 10:08:44 +02:00
3 changed files with 1 additions and 33 deletions
-21
View File
@@ -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.
+1 -2
View File
@@ -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
View File
@@ -1,10 +0,0 @@
jmp 0x100
@0x10
screen:
frambuffer_ptr: U32 0x0
size: U32 0x0
position_xy: U32 0x0
mode: U32 0x0
@0x100