Commit graph

120 commits

Author SHA1 Message Date
hugova
df5130df2e comment out buggy code in source.s 2025-05-08 23:06:32 +02:00
hugova
83793035ad add use of ARGVEC see public.inc 2025-05-08 23:05:38 +02:00
hugova
9b5fd7d6e5 limit pixel_draw to only write pixel with 0 - 255 x_pos 2025-05-08 23:05:38 +02:00
c336e43c19 Add bytesquashing (turning instructions etc. into dead bytes) 2025-05-08 22:18:57 +02:00
010cc5dd87 Make FIX-LABEL-ADDRESSES-IN-INSTRUCTION-LIST add PROGRAM_END label 2025-05-08 22:18:57 +02:00
9d2d0dea6b Fix instruction redefinition and add some opcodes 2025-05-08 22:18:57 +02:00
184d0324c0 Fix broken INSTRUCTION-LENGTH 2025-05-08 22:18:57 +02:00
31bb5f8509 Add offset label class 2025-05-08 22:18:57 +02:00
15a70836ac Add temporary ARGVEC and VARVEC definitions 2025-05-08 22:18:57 +02:00
4a4a7b8485 Add LABELP predicate 2025-05-08 22:18:57 +02:00
379d33d5a1 Move label name + prefix warning to the right place 2025-05-08 22:18:57 +02:00
eec5edc715 Correct instruction length of immediates 2025-05-08 22:18:57 +02:00
hugova
032cbea0ab create build file and remove enviroment specific file 2025-05-08 21:46:02 +02:00
hugova
3e063e9aaf move pixel-draw code 2025-05-08 21:41:46 +02:00
d9673915a5 Add public.inc
That revert before? I was kidding, I concede nothing! I win! (i.e. we
talked for a while and both decided that an argument vector was better
after all)
2025-05-08 21:17:09 +02:00
8a45d4fca1 Revert "populate .inc file with parameters for compiler"
We changed our minds, Hugo has the better idea, I concede and humbly
admit defeat.

This reverts commit 8d5cf37448.
2025-05-08 20:24:18 +02:00
hugova
8d5cf37448 populate .inc file with parameters for homade compiler, will change format 2025-05-08 20:16:06 +02:00
hugova
c8484975a8 move emacs uggly banner to the right place 2025-05-08 20:15:13 +02:00
hugova
a553549b18 found place were old 16-bit zeropage format was used, fix that! 2025-05-08 20:11:04 +02:00
hugova
75bbe83a01 fix spelling 2025-05-08 19:41:17 +02:00
37b2864a7d Add function to compute addresses of labels in instruction list 2025-05-08 19:36:10 +02:00
501da2341e Bind *LABEL-COUNTER* to 0 at the start of compiling 2025-05-08 19:33:31 +02:00
bcc039774b Move *LABEL-COUNTER* to label.lisp 2025-05-08 19:33:13 +02:00
5ca740efa9 Add PRODUCE-COMMENT 2025-05-08 19:32:54 +02:00
8dd78265b4 Nicer instruction printing 2025-05-08 19:32:43 +02:00
41bd413b4c Add LABEL class and replace uses of temporary strings with it 2025-05-08 19:10:38 +02:00
76f1fa0658 Add relative addressing type for branches 2025-05-08 19:10:15 +02:00
37241a1fc3 Replace the text assembly in high-level with instruction objects 2025-05-08 17:11:57 +02:00
0a3675feac Turn the user-side compiler into a proper ASDF system 2025-05-03 12:22:56 +02:00
fd5a8fac4f Add check so zero-page instructions can't use too big operands 2025-05-02 22:38:35 +02:00
hugova
09d7701c15 add test program for char_draw 2025-05-02 22:36:27 +02:00
19b9feb02d Begin serious work on User-Side Compiler (USC) 2025-05-02 22:26:29 +02:00
hugova
ddd2057ff4 add hinting for user side compiler 2025-05-02 22:02:55 +02:00
hugova
4c604c8a47 fix spelling 2025-05-02 21:57:59 +02:00
hugova
cb23f4ec58 update gitignore 2025-05-02 21:52:24 +02:00
hugova
830c4d135d Add small minute changes 2025-05-02 21:51:49 +02:00
hugova
a5044d6e4c Add code for not working scanline interupt (for future dubbel buffer) 2025-05-02 20:46:27 +02:00
hugova
1a8d4593ed Minimise performance issues of None Maskable Interupt 2025-05-02 18:55:33 +02:00
hugova
3bdf52d1a8 Add more variable for triangle_drawing 2025-05-01 17:25:37 +02:00
hugova
737ebbbe51 Add more skeleton code for future triangle drawing 2025-05-01 16:17:42 +02:00
hugova
c27e79efa6 Add some code structure for future triangle rendering 2025-04-28 16:01:06 +02:00
hugova
a7031b7418 Changed test to stop writing outside of the screen 2025-04-28 14:14:06 +02:00
hugova
c5d14ae11e remove unessesary test. The buggertest may be used because line drawing is fast enough 2025-04-28 14:10:28 +02:00
hugova
bfefcbff8f Changed 16-bit value syntax from using > and < in addresses to using +1.
This was recomended by dicander and duunqnd because  A =$ABAC
    looks like one address and not 2 zero-page addresses.
2025-04-28 13:06:57 +02:00
hugova
7f56f90613 Changed 16-bit value syntax from using > and < in addresses to using +1.
This was recomended by dicander and duunqnd because  A =$ABAC
looks like one address and not 2 zero-page addresses.
2025-04-28 12:56:52 +02:00
Marcus Dicander
594218d485 Added Marcus first effect, with help from Duuqnd and hugova 2025-04-03 23:22:57 +02:00
hugova
f93557bfd9 Made math befor line-draw-loop faster. from 811183 cpu cykles to 809951 2025-04-03 16:58:55 +02:00
hugova
589fd5d738 push changes from line_down to line_up_inv line_down_inv 2025-04-03 16:17:30 +02:00
hugova
18c08d6b2b Pushed performance improvement from line_down to line_up 2025-04-03 00:41:21 +02:00
hugova
adef2c0f56 Make line draw faster 2025-04-03 00:21:01 +02:00