ulas/.git
16 months agoReplaced occurances of printf with the proper fprintf call in disas
Lukas Krickl [Sun, 25 Feb 2024 18:36:56 +0000 (19:36 +0100)]
Replaced occurances of printf with the proper fprintf call in disas

16 months agoWIP: fixed more disas instructions. WIP: 16 bit values in disas
Lukas Krickl [Sun, 25 Feb 2024 18:34:02 +0000 (19:34 +0100)]
WIP: fixed more disas instructions. WIP: 16 bit values in disas

16 months agoFixed a few more instructions
Lukas Krickl [Sun, 25 Feb 2024 17:31:26 +0000 (18:31 +0100)]
Fixed a few more instructions

16 months agoFixed some instruction parsers for disas
Lukas Krickl [Sun, 25 Feb 2024 07:40:10 +0000 (08:40 +0100)]
Fixed some instruction parsers for disas

16 months agoWIP: disasm output
Lukas Krickl [Sun, 25 Feb 2024 07:10:25 +0000 (08:10 +0100)]
WIP: disasm output

16 months agoWIP: added basic db fallback outupt to disasm
Lukas Krickl [Sat, 24 Feb 2024 11:44:37 +0000 (12:44 +0100)]
WIP: added basic db fallback outupt to disasm

16 months agoWIP: disas output
Lukas Krickl [Sat, 24 Feb 2024 11:31:21 +0000 (12:31 +0100)]
WIP: disas output

16 months agoChanged unsigned short to int for disas data
Lukas Krickl [Sat, 24 Feb 2024 07:06:35 +0000 (08:06 +0100)]
Changed unsigned short to int for disas data

16 months agoWIP: disas functionality
Lukas Krickl [Sat, 24 Feb 2024 06:50:29 +0000 (07:50 +0100)]
WIP: disas functionality

16 months agoWIP: disasm
Lukas Krickl [Thu, 22 Feb 2024 18:38:19 +0000 (19:38 +0100)]
WIP: disasm

16 months agoWIP: disas read loop
Lukas Krickl [Thu, 22 Feb 2024 13:15:45 +0000 (14:15 +0100)]
WIP: disas read loop

16 months agoWIP: added -a option. Fixed missing break when adding incpath
Lukas Krickl [Thu, 22 Feb 2024 06:04:29 +0000 (07:04 +0100)]
WIP: added -a option. Fixed missing break when adding incpath

16 months agoWIP: pass-system for disas calls
Lukas Krickl [Thu, 22 Feb 2024 05:43:46 +0000 (06:43 +0100)]
WIP: pass-system for disas calls

16 months agoReplaced relevant e16 with a16
Lukas Krickl [Wed, 21 Feb 2024 16:34:38 +0000 (17:34 +0100)]
Replaced relevant e16 with a16

16 months agoWIP: Adding addr16 type
Lukas Krickl [Wed, 21 Feb 2024 16:18:54 +0000 (17:18 +0100)]
WIP: Adding addr16 type

16 months agoAdded fixme to instruction table
Lukas Krickl [Tue, 20 Feb 2024 16:36:19 +0000 (17:36 +0100)]
Added fixme to instruction table

16 months agoFixed initializer for arch
Lukas Krickl [Tue, 20 Feb 2024 16:31:25 +0000 (17:31 +0100)]
Fixed initializer for arch

16 months agoAdded basic be/le flag to arch
Lukas Krickl [Tue, 20 Feb 2024 12:39:21 +0000 (13:39 +0100)]
Added basic be/le flag to arch

16 months agoAdded more wip items
Lukas Krickl [Tue, 20 Feb 2024 12:34:06 +0000 (13:34 +0100)]
Added more wip items

16 months agoWIP: added starting point for disassembly step
Lukas Krickl [Mon, 19 Feb 2024 17:54:36 +0000 (18:54 +0100)]
WIP: added starting point for disassembly step

16 months agoMoved asmspetok enum to arch
Lukas Krickl [Mon, 19 Feb 2024 16:49:24 +0000 (17:49 +0100)]
Moved asmspetok enum to arch

16 months agoFixed formatting for sm83 macros
Lukas Krickl [Mon, 19 Feb 2024 16:40:42 +0000 (17:40 +0100)]
Fixed formatting for sm83 macros

16 months agoFixed naming for sm83
Lukas Krickl [Mon, 19 Feb 2024 16:39:40 +0000 (17:39 +0100)]
Fixed naming for sm83

16 months agoRemoved todo comment that was resolved
Lukas Krickl [Mon, 19 Feb 2024 14:33:57 +0000 (15:33 +0100)]
Removed todo comment that was resolved

16 months agoMoved register lookup to arch.c
Lukas Krickl [Mon, 19 Feb 2024 12:25:14 +0000 (13:25 +0100)]
Moved register lookup to arch.c

16 months agoWIP: refactoring arch system
Lukas Krickl [Mon, 19 Feb 2024 10:25:20 +0000 (11:25 +0100)]
WIP: refactoring arch system

16 months agoAdded additional ok message when all tests pass
Lukas Krickl [Mon, 19 Feb 2024 06:24:30 +0000 (07:24 +0100)]
Added additional ok message when all tests pass

16 months agoFixed all remaining linter warnings
Lukas Krickl [Mon, 19 Feb 2024 06:05:29 +0000 (07:05 +0100)]
Fixed all remaining linter warnings

16 months agoFixed most linter warnings
Lukas Krickl [Mon, 19 Feb 2024 05:49:41 +0000 (06:49 +0100)]
Fixed most linter warnings

16 months agoFixed some linter warnings
Lukas Krickl [Sun, 18 Feb 2024 17:38:44 +0000 (18:38 +0100)]
Fixed some linter warnings

16 months agoRemoved a magick number
Lukas Krickl [Sun, 18 Feb 2024 03:58:23 +0000 (04:58 +0100)]
Removed a magick number

16 months agoMoved registers to own arch file
Lukas Krickl [Sat, 17 Feb 2024 17:50:18 +0000 (18:50 +0100)]
Moved registers to own arch file

16 months agoAdded more todos
Lukas Krickl [Sat, 17 Feb 2024 05:20:38 +0000 (06:20 +0100)]
Added more todos

16 months agoAdded todo for register lookup
Lukas Krickl [Sat, 17 Feb 2024 05:18:52 +0000 (06:18 +0100)]
Added todo for register lookup

16 months agoFixed linter warning
Lukas Krickl [Thu, 15 Feb 2024 13:43:59 +0000 (14:43 +0100)]
Fixed linter warning

16 months agoProject cleanup
Lukas Krickl [Thu, 15 Feb 2024 13:39:36 +0000 (14:39 +0100)]
Project cleanup

17 months agoImproved test for nested macros
Lukas Krickl [Thu, 4 Jan 2024 17:30:51 +0000 (18:30 +0100)]
Improved test for nested macros

17 months agoAdded test for recursive macro calls
Lukas Krickl [Thu, 4 Jan 2024 17:29:39 +0000 (18:29 +0100)]
Added test for recursive macro calls

17 months agoFixed $10 - $15 macro args
Lukas Krickl [Wed, 3 Jan 2024 22:18:40 +0000 (23:18 +0100)]
Fixed $10 - $15 macro args

17 months agoFixed segfault. TODO: macros do not expand strings properly
Lukas Krickl [Wed, 3 Jan 2024 20:41:47 +0000 (21:41 +0100)]
Fixed segfault. TODO: macros do not expand strings properly

17 months agoIncreased max macro parameters to 15
Lukas Krickl [Wed, 3 Jan 2024 20:16:35 +0000 (21:16 +0100)]
Increased max macro parameters to 15

18 months agoEnsuring that comments still appear in listing
Lukas Krickl [Fri, 29 Dec 2023 06:36:19 +0000 (07:36 +0100)]
Ensuring that comments still appear in listing

18 months agoAdded comment bail when expanding preproc lines
Lukas Krickl [Fri, 29 Dec 2023 06:33:40 +0000 (07:33 +0100)]
Added comment bail when expanding preproc lines

18 months agoRemoved trailing semicolon
Lukas Krickl [Wed, 27 Dec 2023 17:10:10 +0000 (18:10 +0100)]
Removed trailing semicolon

18 months agoRemoved puts from tests
Lukas Krickl [Wed, 27 Dec 2023 17:09:23 +0000 (18:09 +0100)]
Removed puts from tests

18 months agoFixed preproc recursive replacement in a better way
Lukas Krickl [Wed, 27 Dec 2023 17:08:28 +0000 (18:08 +0100)]
Fixed preproc recursive replacement in a better way

18 months agodefine preproc directive allows macro replacement for nexted defines
Lukas Krickl [Wed, 27 Dec 2023 16:40:26 +0000 (17:40 +0100)]
define preproc directive allows macro replacement for nexted defines

18 months agoAdded counter symbol naming to .rep
Lukas Krickl [Sun, 24 Dec 2023 17:33:24 +0000 (18:33 +0100)]
Added counter symbol naming to .rep

18 months agoAdded basic .rep directive
Lukas Krickl [Sun, 24 Dec 2023 15:44:45 +0000 (16:44 +0100)]
Added basic .rep directive

18 months agoWIP: rep directive
Lukas Krickl [Sun, 24 Dec 2023 15:22:16 +0000 (16:22 +0100)]
WIP: rep directive

18 months agoAdded .chr directive to allow defining chr data
Lukas Krickl [Fri, 22 Dec 2023 06:38:46 +0000 (07:38 +0100)]
Added .chr directive to allow defining chr data

18 months agoAdded new .scc (set char code) directive to map ascii to a custom format
Lukas Krickl [Thu, 21 Dec 2023 19:17:38 +0000 (20:17 +0100)]
Added new .scc (set char code) directive to map ascii to a custom format

18 months agoFixed comments not working after .db
Lukas Krickl [Thu, 21 Dec 2023 03:56:24 +0000 (04:56 +0100)]
Fixed comments not working after .db

18 months agoFixed buffer overflow in macro expansion
Lukas Krickl [Wed, 20 Dec 2023 18:12:26 +0000 (19:12 +0100)]
Fixed buffer overflow in macro expansion

18 months agoAdded test case for crashing macro in prod
Lukas Krickl [Wed, 20 Dec 2023 18:07:51 +0000 (19:07 +0100)]
Added test case for crashing macro in prod

18 months agoFixed buffer underflow in trimend
Lukas Krickl [Tue, 19 Dec 2023 14:34:30 +0000 (15:34 +0100)]
Fixed buffer underflow in trimend

18 months agoAdded divison to test cases
Lukas Krickl [Tue, 19 Dec 2023 14:32:51 +0000 (15:32 +0100)]
Added divison to test cases

18 months agoFixed division in first pass
Lukas Krickl [Tue, 19 Dec 2023 14:24:10 +0000 (15:24 +0100)]
Fixed division in first pass

18 months agoAdded doc as to why a8 will not emit overflow warnings
Lukas Krickl [Sat, 16 Dec 2023 11:23:05 +0000 (12:23 +0100)]
Added doc as to why a8 will not emit overflow warnings

18 months agoFixed warning for ldh instructions
Lukas Krickl [Sat, 16 Dec 2023 11:21:52 +0000 (12:21 +0100)]
Fixed warning for ldh instructions

18 months agoAdded very basic -w flags
Lukas Krickl [Sat, 16 Dec 2023 08:06:08 +0000 (09:06 +0100)]
Added very basic -w flags

18 months ago.de now are evaluated during the first pass
Lukas Krickl [Sat, 16 Dec 2023 07:40:54 +0000 (08:40 +0100)]
.de now are evaluated during the first pass

18 months agoAdded jp hl
Lukas Krickl [Fri, 15 Dec 2023 17:54:42 +0000 (18:54 +0100)]
Added jp hl

18 months agoAdded jp hl instruction
Lukas Krickl [Fri, 15 Dec 2023 17:52:38 +0000 (18:52 +0100)]
Added jp hl instruction

18 months agoFixed di instruction opcode
Lukas Krickl [Fri, 15 Dec 2023 08:58:53 +0000 (09:58 +0100)]
Fixed di instruction opcode

18 months agoAdded .de and .se for simple enum-like definitions
Lukas Krickl [Fri, 15 Dec 2023 08:14:18 +0000 (09:14 +0100)]
Added .de and .se for simple enum-like definitions

18 months agoAdded more TODOS
Lukas Krickl [Thu, 14 Dec 2023 13:15:07 +0000 (14:15 +0100)]
Added more TODOS

18 months agoAdded more todos
Lukas Krickl [Thu, 14 Dec 2023 12:09:45 +0000 (13:09 +0100)]
Added more todos

18 months agoFixed missing memset in release build
Lukas Krickl [Thu, 14 Dec 2023 07:16:58 +0000 (08:16 +0100)]
Fixed missing memset in release build

18 months agoAdjusted symbols output format
Lukas Krickl [Thu, 14 Dec 2023 04:54:29 +0000 (05:54 +0100)]
Adjusted symbols output format

18 months agoAddedmore tabs for now
Lukas Krickl [Thu, 14 Dec 2023 04:54:03 +0000 (05:54 +0100)]
Addedmore tabs for now

18 months agoAdded 0x as a prefix for symbols
Lukas Krickl [Thu, 14 Dec 2023 04:52:08 +0000 (05:52 +0100)]
Added 0x as a prefix for symbols

18 months agoMade symbol ints hex
Lukas Krickl [Thu, 14 Dec 2023 04:51:46 +0000 (05:51 +0100)]
Made symbol ints hex

18 months agoAdded basic symbol output
Lukas Krickl [Thu, 14 Dec 2023 04:50:07 +0000 (05:50 +0100)]
Added basic symbol output

18 months agoFixed ret z instruction
Lukas Krickl [Wed, 13 Dec 2023 18:26:57 +0000 (19:26 +0100)]
Fixed ret z instruction

18 months agoAdded tests for db
Lukas Krickl [Wed, 13 Dec 2023 13:37:22 +0000 (14:37 +0100)]
Added tests for db

18 months agoFixed swap instructions
Lukas Krickl [Tue, 12 Dec 2023 13:10:40 +0000 (14:10 +0100)]
Fixed swap instructions

18 months agoFixed symbol scoping rules
Lukas Krickl [Tue, 12 Dec 2023 08:27:38 +0000 (09:27 +0100)]
Fixed symbol scoping rules

18 months agoAdded test to cover .adv
Lukas Krickl [Mon, 11 Dec 2023 20:21:19 +0000 (21:21 +0100)]
Added test to cover .adv

18 months agoAdded .adv directive
Lukas Krickl [Mon, 11 Dec 2023 20:20:11 +0000 (21:20 +0100)]
Added .adv directive

18 months agoLabels can now appear before asm directives
Lukas Krickl [Mon, 11 Dec 2023 20:06:18 +0000 (21:06 +0100)]
Labels can now appear before asm directives

18 months agoAdded missing ld [hl], a instruction
Lukas Krickl [Mon, 11 Dec 2023 17:00:17 +0000 (18:00 +0100)]
Added missing ld [hl], a instruction

18 months agoAdded todo
Lukas Krickl [Mon, 11 Dec 2023 15:43:35 +0000 (16:43 +0100)]
Added todo

18 months agoFixed readme
Lukas Krickl [Mon, 11 Dec 2023 08:49:46 +0000 (09:49 +0100)]
Fixed readme

18 months agoAdded some todos
Lukas Krickl [Mon, 11 Dec 2023 08:48:59 +0000 (09:48 +0100)]
Added some todos

18 months agoAdded .chksm directive that inserts rom header checksum into the rom
Lukas Krickl [Sun, 10 Dec 2023 17:33:30 +0000 (18:33 +0100)]
Added .chksm directive that inserts rom header checksum into the rom

18 months agoFixed tests
Lukas Krickl [Sun, 10 Dec 2023 12:41:35 +0000 (13:41 +0100)]
Fixed tests

18 months agoFixed bug that caused incorrect label addresses during the
Lukas Krickl [Sun, 10 Dec 2023 12:39:59 +0000 (13:39 +0100)]
Fixed bug that caused incorrect label addresses during the
first pass

18 months agoAdded #include directive
Lukas Krickl [Sun, 10 Dec 2023 11:40:27 +0000 (12:40 +0100)]
Added #include directive

18 months agoWIP: #include
Lukas Krickl [Sun, 10 Dec 2023 09:15:05 +0000 (10:15 +0100)]
WIP: #include

18 months agoAdded remaining int expression evaluations
Lukas Krickl [Sun, 10 Dec 2023 08:15:57 +0000 (09:15 +0100)]
Added remaining int expression evaluations

18 months agoAdded remaining int operators
Lukas Krickl [Sun, 10 Dec 2023 08:03:58 +0000 (09:03 +0100)]
Added remaining int operators

18 months agoAdded -i option for include path management
Lukas Krickl [Sat, 9 Dec 2023 21:40:55 +0000 (22:40 +0100)]
Added -i option for include path management

18 months agoAdded .incbin directive
Lukas Krickl [Sat, 9 Dec 2023 21:34:11 +0000 (22:34 +0100)]
Added .incbin directive

18 months agoWIP: path resolver
Lukas Krickl [Sat, 9 Dec 2023 20:33:00 +0000 (21:33 +0100)]
WIP: path resolver

18 months agoPath bounds checks
Lukas Krickl [Sat, 9 Dec 2023 17:27:50 +0000 (18:27 +0100)]
Path bounds checks

18 months agoWIP: path resolver
Lukas Krickl [Sat, 9 Dec 2023 17:26:48 +0000 (18:26 +0100)]
WIP: path resolver

18 months agoWIP: inc path resolution
Lukas Krickl [Sat, 9 Dec 2023 14:31:50 +0000 (15:31 +0100)]
WIP: inc path resolution

18 months agoWIP: path resolution for include and incbin
Lukas Krickl [Wed, 6 Dec 2023 14:14:35 +0000 (15:14 +0100)]
WIP: path resolution for include and incbin

18 months agoAdded .str directive
Lukas Krickl [Tue, 5 Dec 2023 18:56:23 +0000 (19:56 +0100)]
Added .str directive