Commit graph

9 commits

Author SHA1 Message Date
slederer
8f4d017668 sasm: fix typo error; examples: add fire demo 2025-11-30 23:49:44 +01:00
slederer
87ec71bd6d align _END label, add ALIGN directive to assembler
- fixes failing memory allocator when _END label is not aligned
2025-11-05 00:30:49 +01:00
slederer
901a2b3e6d sasm: set stack size correctly 2025-07-03 00:45:26 +02:00
slederer
3526060a19 sasm: bugfix for LBRANCH/LCBRANCH size changes
- The LBRANCH and LCBRANCH directives
  create different instruction sequences
  depending on the jump distance.
  So the code size can shrink during the first pass
  when the jump distance can be determined (when the
  label that is the jump destination is parsed).
  In the long form, LOADREL/JUMP is used, which might
  or might not need 2 bytes of padding. With this bugfix,
  the padding is always added, either before or after
  the LOADREL indirect operand, so that the code
  size does not change depending on the padding
  required. Otherwise the code might shrink further
  on the second pass because a LBRANCH/LCBRANCH
  instruction no longer needs padding due to an
  earlier code size change.
2025-04-07 00:25:32 +02:00
slederer
fbc72c5438 sasm: show filename when processing INCBIN
libgen: renamed
2024-11-09 23:02:39 +01:00
slederer
5ce5bc44b8 sasm: use filesize() for incbin directive 2024-11-09 19:03:09 +01:00
slederer
ab57b5ce7a sasm: add INCBIN meta directive 2024-11-09 00:54:57 +01:00
slederer
a35b8eaf60 Bugfix int range in sasm, create Makefile, portability fixes 2024-10-06 23:51:57 +02:00
slederer
60db522e87 initial commit 2024-09-19 14:12:22 +02:00