Commit graph

66 commits

Author SHA1 Message Date
hugova
8eb5ff855b fix most of by one errors of linedraw. 2025-07-26 19:42:57 +02:00
hugova
185f37dccc make use of new clear_screen macro. 2025-07-26 15:55:57 +02:00
hugova
cd0a91b34e modify line.s to make it work if X_pos > X_end 2025-07-25 09:00:32 +02:00
hugova
f7d4a4e83f modify linedraw to not draw outside screen aria. 2025-07-24 21:49:58 +02:00
hugova
25e65d8197 modify linetest to highlight out of bound bad behaviour of line 2025-07-24 21:49:58 +02:00
hugova
1e4a823a80 fix bugg added last commit 2025-07-23 18:05:37 +02:00
hugova
3fe7cdb8ac optimise line_* by using 2:s compliment (see commit before)) 2025-07-23 18:03:06 +02:00
hugova
b23a63ddf5 optimise line_down by using signed 16-bit 2025-07-22 17:49:09 +02:00
hugova
e5c78e7565 remove old syntax such that lines can be drawn without smc 2025-07-22 17:15:16 +02:00
hugova
8fe1c85a40 fix small issues with linedraw 2025-07-17 14:45:51 +02:00
hugova
1ad8071f75 Reduses one CMP instruction in line_down_inv by drawing the line in the other direction 2025-07-17 14:00:56 +02:00
hugova
cda44f292c Reduses one CMP instruction in line_up_inv 2025-07-17 13:53:56 +02:00
hugova
f64d28168b make line_down draw from other end of line. Reduses one CMP instruction 2025-07-17 13:49:24 +02:00
hugova
54fa061342 fix line draw bug, that snaps the end to exry 8th pixel 2025-07-17 13:49:24 +02:00
hugova
2caf71d8fe add more linetests for debuging 2025-07-17 13:49:24 +02:00
hugova
b4860b000c reduse linedraw cpu cyckles before the loop 2025-07-16 21:31:21 +02:00
hugova
3a5a16cc06 add pixel_calc that does the same as picel_draw without the drawing pixel part 2025-07-14 12:24:35 +02:00
hugova
5a35ead4dd cleanup test utch that they can run cleanly after each other 2025-07-13 22:06:31 +02:00
hugova
3f470688a4 make line drawing slightly faster, and make it a bit smaller 2025-07-01 20:11:18 +02:00
hugova
87fd6a1b9d make memset work more like c:s implementation. 2025-05-15 17:05:28 +02:00
hugova
c2a4ff416d fix comment and fix syntax 2025-05-11 20:45:11 +02:00
hugova
83793035ad add use of ARGVEC see public.inc 2025-05-08 23:05:38 +02:00
hugova
3e063e9aaf move pixel-draw code 2025-05-08 21:41:46 +02:00
hugova
830c4d135d Add small minute changes 2025-05-02 21:51:49 +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
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
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
hugova
0fd76b862a Clear screen grafic the correct way 2025-04-03 00:18:09 +02:00
hugova
c288254f1f Change scope and add init files 2025-03-31 00:10:51 +02:00
hugova
682a0f2fb9 Push performance improvement from line_down.s to line_up.s 2025-03-30 17:25:23 +02:00
hugova
c0446ba5e2 Push performance improvements from line_down.s to line_*.s 2025-03-29 22:07:33 +01:00
hugova
96d9bc4440 Improve performance of line_down from 837970 to 835768 (cpu cyceles of a test) 2025-03-29 21:50:25 +01:00
hugova
963cc1b258 Improve performance of line-up.s in test cpu cykels got from 840893 to 840595 2025-03-29 21:00:31 +01:00
hugova
147ceb73f2 Fix first pixel of, in all line_* 2025-03-29 19:47:39 +01:00
hugova
d9fe32e8f3 Push performance improvments from line_down.s to line*.s 2025-03-29 18:23:03 +01:00
hugova
08daa79e6a Improve line_down from 839904 to 837970 cykles in line_test_time 2025-03-29 18:09:58 +01:00
hugova
46a52661b8 Propergate optimisations from line_down.s to the other line_*.s files 2025-03-29 16:16:47 +01:00
hugova
3dfbe05938 Spell macro Mult_16 with a upper character 2025-03-29 14:21:12 +01:00
hugova
b3887a8e0d Rename memory operation and create files for later text drawing stuff 2025-03-27 21:12:40 +01:00
hugova
801cd55541 Improved performance of line_down.s before loop. 2025-03-26 22:00:09 +01:00
hugova
89c9bc4129 Add self modifying code to draw_line for 2% performance improvments 2025-03-26 12:14:55 +01:00
hugova
ff64a9a9b0 Add missing performance improvments to line_* from line_down.s 2025-03-25 23:28:53 +01:00
hugova
7a5585d2c4 Add better code coments 2025-03-25 21:21:39 +01:00
hugova
842033a014 Add performance optimisiation for line_up_inv.s 2025-03-25 19:46:03 +01:00