Gelthor
46abf8d893
Add globals and error codes
...
Added support for global variables.
This requires including `start.asm` as the first code. This includes
a `jmp` to 0x100 for user code, and a magic number that modules
can check to verify th the user has correctly reserved the space.
The magic number is 0xb301534c:
* This has the high bit set so is not a valid instruction
* On builds that ignore the high bit this decodes to `nor zr, zr,
0x534c` a no-op.
* The immediate is "SL" for standardl ibrary.
Due to a bug start pads with U... 0, instead of @addr.
`start.asm` also initialises `sp` so it start just below the 64KiB LUT
memory alocation.
Added some error codes for the upcoming graphics module.
2026-09-06 11:02:27 +01:00
Gelthor
04f3f03ad5
Moved new *.asm files into src/
...
v
2026-09-04 16:42:35 +01:00
Gelthor
39ff477f6e
Merge remote-tracking branch 'gelthor' into graphics
2026-09-04 16:09:51 +01:00
Gelthor
4d752ef67c
Added initial draft of globals and errno
2026-09-04 16:07:24 +01:00
ShatteredMINT
32a157e87d
Merge pull request 'Changed mul_low algorithm to radix-4 multiplication' ( #16 ) from Micha_i/symphony_stdlib:fast-math into main
...
Reviewed-on: TCShenanigans/symphony_stdlib#16
2026-09-04 08:21:49 +02:00
Michał Isalski
a00c7f2a84
Changed mul_low algorithm to radix-4 multiplication
2026-09-04 00:11:33 +02:00
ShatteredMINT
c83269fcf7
fix path to stdlib.asm
2026-09-03 20:35:41 +02:00
ShatteredMINT
6bf0c0a4fc
add examples directory
2026-09-03 20:34:56 +02:00
ShatteredMINT
697445feec
add tests folder
2026-09-03 20:34:16 +02:00
ShatteredMINT
7c49c5212e
move assembly files into src directory
2026-09-03 20:32:40 +02:00
ShatteredMINT
6ff1a43c32
Merge pull request 'Added find_index array function' ( #9 ) from Micha_i/symphony_stdlib:array-functions into main
...
Reviewed-on: TCShenanigans/symphony_stdlib#9
2026-09-03 20:30:09 +02:00
Michał Isalski
b5249a43b9
Merge branch 'main' into array-functions
2026-09-03 20:29:24 +02:00
ShatteredMINT
0188969dab
Merge pull request 'Added read_line console function' ( #10 ) from Micha_i/symphony_stdlib:console-functions into main
...
Reviewed-on: TCShenanigans/symphony_stdlib#10
2026-09-03 14:56:12 +02:00
Micha_i
5c9a33c24d
Merge branch 'main' into array-functions
2026-09-03 09:04:11 +02:00
Micha_i
e4edb56d08
Merge branch 'main' into console-functions
2026-09-03 09:04:03 +02:00
Michał Isalski
aa8eef7b1f
Fixed at-address
2026-09-02 22:56:24 +02:00
ShatteredMINT
37d0e556d2
Merge pull request 'clean up confusion about function template' ( #14 ) from meta-documentation into main
...
Reviewed-on: TCShenanigans/symphony_stdlib#14
2026-09-02 20:49:38 +02:00
ShatteredMINT
26d3a4d4f4
clean up confusion about function template
2026-09-02 20:49:22 +02:00
Michał Isalski
870b6ebc39
Merge branch 'main' into console-functions
2026-09-02 20:41:38 +02:00
Michał Isalski
1e4ad8f64c
Merge branch 'main' into array-functions
2026-09-02 20:40:49 +02:00
Michal Isalski
ca1ba67fd8
Added a shift conversion LUT and finished read_line (except Writeback)
2026-09-02 13:20:55 +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: TCShenanigans/symphony_stdlib#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
Michał Isalski
f9bb69f1f5
Added storing shift status
2026-09-02 02:03:00 +02:00
ShatteredMINT
9816111f38
clarify stack arguments
2026-09-01 14:08:20 +02:00
Michal Isalski
20e1f17181
Fixed swapped pop instructions
2026-09-01 13:52:45 +02:00
Michal Isalski
625f01166a
Made find_index conform to new doc guidelines
2026-09-01 13:52:26 +02:00
ShatteredMINT
f2e5c830b3
explain inline comment
2026-09-01 13:48:12 +02:00
Michal Isalski
65caf8aff9
Made read_line compliant to new doc guidelines
2026-09-01 13:47:09 +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
Michal Isalski
1dca814388
One instruction less by using another register
2026-09-01 10:54:29 +02:00
Michal Isalski
9dfb8248a6
Added handling for skipping non-renderable characters
...
Added handling for backspace character
2026-09-01 10:51:31 +02:00
Michał Isalski
4b962a1f87
Added read_line function
2026-09-01 00:38:37 +02:00
Michał Isalski
e6a0739e95
pleegwat's code review fixes
2026-08-31 23:57:55 +02:00
Michał Isalski
1885f304ad
Merge branch 'array-functions' of https://gitea.shatteredmint.net/Micha_i/symphony_stdlib into array-functions
2026-08-31 23:55:16 +02:00
Michał Isalski
63b37ab094
Added comment about predicate context
2026-08-31 23:06:59 +02:00
Michał Isalski
6981ff027d
Tested and fixed stride->shift conversion missing
2026-08-31 23:06:59 +02:00
Michal Isalski
88c91a8eec
Reduced operations to get -1 in register
2026-08-31 23:06:59 +02:00
Michal Isalski
a02f0646b4
Fixed the predicate return address
2026-08-31 23:06:59 +02:00
Michal Isalski
7abfcabd73
Added find_index array function
2026-08-31 23:06:59 +02:00
Michał Isalski
b476b8aaa3
Added comment about predicate context
2026-08-31 23:06:40 +02:00
Michał Isalski
bddb153d9b
Tested and fixed stride->shift conversion missing
2026-08-31 23:03:23 +02:00
Michal Isalski
29103d4335
Reduced operations to get -1 in register
2026-08-31 15:30:11 +02:00