PleegWat
  • Joined on 2026-09-02
PleegWat pushed to int_to_string at PleegWat/symphony_stdlib 2026-09-15 21:23:38 +02:00
836acb48af Add test and fix for edgecase
PleegWat pushed to int_to_string at PleegWat/symphony_stdlib 2026-09-15 21:11:31 +02:00
016c6f7008 Add decimal for small (up to 8 digit) numbers
PleegWat pushed to int_to_string at PleegWat/symphony_stdlib 2026-09-10 21:03:56 +02:00
ae5f90456c Add hex
PleegWat pushed to int_to_string at PleegWat/symphony_stdlib 2026-09-10 15:34:01 +02:00
431e00ca7e Add octal support
PleegWat created pull request TCShenanigans/symphony_stdlib#22 2026-09-08 17:01:58 +02:00
WIP: Int to string conversion
PleegWat pushed to int_to_string at PleegWat/symphony_stdlib 2026-09-08 17:01:13 +02:00
40e4272cdd Int to string conversion
PleegWat created branch int_to_string in PleegWat/symphony_stdlib 2026-09-08 17:01:13 +02:00
PleegWat pushed to main at PleegWat/symphony_stdlib 2026-09-08 15:45:32 +02:00
e654d451a7 Merge pull request 'Globals and start.asm' (#19) from Gelthor/symphony_stdlib:graphics into main
4801520424 Split framebuffer stride into stride and depth
1ba70f10cd Merge remote-tracking branch 'origin/main' into graphics
ca5cff0a79 Function premble should list error codes, if any
7368044335 Global addresses now in hex and listed in order
Compare 14 commits »
PleegWat pushed to str_to_int at PleegWat/symphony_stdlib 2026-09-06 16:14:30 +02:00
304fe54833 Apply agreed naming conventions
6f7ad3aa4b Implement atoi
9b7a8685e6 Merge pull request 'Add ISA definitions for symphony' (#18) from PleegWat/symphony_stdlib:add_isa into main
dd20822ee1 Use all unsigned compares
4c0cd79fdd Fix several bugs
Compare 22 commits »
PleegWat pushed to main at PleegWat/symphony_stdlib 2026-09-06 16:10:56 +02:00
9b7a8685e6 Merge pull request 'Add ISA definitions for symphony' (#18) from PleegWat/symphony_stdlib:add_isa into main
dd20822ee1 Use all unsigned compares
4c0cd79fdd Fix several bugs
2f09320fa5 Add optimization for arbitrary aligned values
8e7441fdb3 Add ISA definitions for symphony
Compare 5 commits »
PleegWat commented on pull request TCShenanigans/symphony_stdlib#19 2026-09-06 14:02:45 +02:00
Globals and start.asm

I'd recommend centralizing the function epilogue. Otherwise, if a future refactor changes which registers need to be saved and one of the return sites is missed that could lead to nasty errors.

PleegWat commented on pull request TCShenanigans/symphony_stdlib#19 2026-09-06 14:02:45 +02:00
Globals and start.asm

If you are worried about register pressure, rather than having 2 bool arguments like this you could have a single u32 argument holding a bitwise OR of flags.

PleegWat commented on pull request TCShenanigans/symphony_stdlib#19 2026-09-06 14:02:45 +02:00
Globals and start.asm

Since this function lives in graphics_32, I'd expect that to imply 32 bits per pixel. If the same function is intended to be used for both modes, it should live in a generic graphics file.

PleegWat commented on pull request TCShenanigans/symphony_stdlib#19 2026-09-06 14:02:45 +02:00
Globals and start.asm

I think I'd rather see graphics mode and text mode code in separate files.

PleegWat commented on pull request TCShenanigans/symphony_stdlib#19 2026-09-06 14:02:45 +02:00
Globals and start.asm

The function code does not match this argument list

PleegWat commented on pull request TCShenanigans/symphony_stdlib#19 2026-09-06 14:02:45 +02:00
Globals and start.asm

Should we document these as returns instead? If any caller is writing to the buffer directly, they could then rely on this return and skip the extra load.

PleegWat commented on pull request TCShenanigans/symphony_stdlib#19 2026-09-06 14:02:45 +02:00
Globals and start.asm

There is a bit trick for this: !(v & (v - 1)). Though that does not yield the log2.

PleegWat commented on pull request TCShenanigans/symphony_stdlib#19 2026-09-06 13:29:26 +02:00
Globals and start.asm

If we do not declare these addresses in order, I fear we will accidentally introduce double use of an address at some point.

PleegWat commented on pull request TCShenanigans/symphony_stdlib#19 2026-09-06 13:29:26 +02:00
Globals and start.asm

I'd personally rather see reserved addresses put in hex, but I don't have a good reasoning for that.