Commit graph

120 commits

Author SHA1 Message Date
hugova
913a6ba072 optimize circle draw (more code cleanup) 2025-07-02 00:45:41 +02:00
hugova
5bb62aed88 optimise circle using lookup table 2025-07-01 23:49:35 +02:00
hugova
3f470688a4 make line drawing slightly faster, and make it a bit smaller 2025-07-01 20:11:18 +02:00
hugova
e0314e8530 added more extensive testing on circle draw and found a bug that depends on the circle x-pos 2025-07-01 15:16:59 +02:00
hugova
5f1558ce22 fix circle issues by adding propper offsets to circle half quarters. 2025-07-01 14:47:30 +02:00
hugova
c1846e35bd add more circle testing and remove none working offsets 2025-07-01 01:19:21 +02:00
hugova
7196992043 Add last part to circle, still a bit buggy 2025-07-01 00:06:04 +02:00
hugova
6c962befa2 optimise circle draw by redusing instructions 2025-06-30 23:41:55 +02:00
hugova
ba2db967c4 use unsafe flag in macros to make circle draw faster 2025-06-30 23:09:14 +02:00
hugova
bdca0cd82a Do some renaming and change the code structure for circle-draw 2025-06-30 22:18:45 +02:00
hugova
fd587ea440 do some code cleanup (still ugly) in circle drawing code 2025-06-30 21:38:13 +02:00
hugova
55ab7e367d add more parts of circle now 7/8 of them renders (though buggy looking) 2025-06-30 21:15:29 +02:00
hugova
e01684254f add other parts of circle. Now 6/8 of the circle renders. (A bit buggy looking) 2025-06-29 18:50:35 +02:00
hugova
7a50de832e remove duplicate code for circle_draw 2025-06-29 15:22:30 +02:00
hugova
c4add9a62c draw 1/2 of circle by circle-help-subroutine 2025-06-29 13:12:01 +02:00
hugova
219f8c155d Optimization by redusing 2 compare operations (now other part of circle is renderd but still 1/4 of it is renderd.) 2025-06-29 10:36:50 +02:00
hugova
c5b0d5f64b Remove set flag instruction to optimize circledraw from 5846 to 5640 cpu cycles 2025-06-29 10:23:41 +02:00
hugova
b7f04d1fcb make circledraw faster by using lookup table 2025-06-29 02:51:34 +02:00
hugova
380728a80a add another part of the circle. now 1/4 circle done 2025-06-29 02:04:08 +02:00
hugova
c2a5af481f rewrote the circle code to use relative position for pixel draw. This made it 2 orders of magnitudes faster! 2025-06-28 22:25:55 +02:00
hugova
484bafa828 Fix quartercircle offset isse (before the circle had the offset (0,0) always!) 2025-06-28 21:10:59 +02:00
hugova
363e3907ff Fix circle-code (wip) Now the test renders the forth quarter of a circle! 2025-06-28 21:05:25 +02:00
hugova
50a17ad691 rewrote circle code (still not working) 2025-06-28 20:53:39 +02:00
hugova
846d792aee Add extended testing of pixel_draw and fix a pixel_draw bugg (error of max 8px) 2025-06-28 20:12:58 +02:00
hugova
d691d692b9 more pritty circle bugs 2025-06-26 22:38:11 +02:00
hugova
8b955a5007 very cool but not working circle. 2025-06-26 22:05:08 +02:00
hugova
89dcec60ff implement general divition 2025-05-17 16:12:13 +02:00
hugova
3283f9a68a fix compiler arguments 2025-05-17 16:12:13 +02:00
hugova
69232b6d53 optimize general multiplication, less cpu cykels in most cases 2025-05-16 18:37:21 +02:00
hugova
9a06f770c2 add general multiplication implementation 2025-05-16 11:11:21 +02:00
hugova
c6392088f8 optimize away JMP instruction in mem logic 2025-05-15 17:43:23 +02:00
hugova
f17b332005 optimize code, no need to set Y after overflow 2025-05-15 17:39:43 +02:00
hugova
350e014e3f fix the banner of char_draw to the compiler 2025-05-15 17:36:34 +02:00
hugova
465996a2e6 used unsafe add to improve char_draw performance 2025-05-15 17:32:42 +02:00
hugova
c1a79b32b7 unroll loop for faster char-draw:s 2025-05-15 17:24:40 +02:00
hugova
98ef4eaef0 remove unused instruction 2025-05-15 17:14:24 +02:00
hugova
87fd6a1b9d make memset work more like c:s implementation. 2025-05-15 17:05:28 +02:00
hugova
cc46c68290 optimize new memcpy 2025-05-15 16:18:50 +02:00
hugova
f8dbfd86f9 rewrite memcpy to work more like c:s implementation 2025-05-15 16:11:51 +02:00
hugova
3295b71f6b make char_draw faster using lookup-table 2025-05-12 12:21:18 +02:00
hugova
55e63ff627 optimise away constant by adding it to lookup-table 2025-05-12 02:24:55 +02:00
hugova
d34d25ce9f reduce 2 into 1 instruction in pixel_draw.s 2025-05-12 02:06:26 +02:00
hugova
65905fa7e7 optimise pixel draw using lookup table 2025-05-12 01:44:00 +02:00
hugova
2bab2a6c8a change naming convention for one variable 2025-05-11 22:32:36 +02:00
hugova
c2e89a5487 make char.s use ARGVEC 2025-05-11 22:23:08 +02:00
hugova
c2a4ff416d fix comment and fix syntax 2025-05-11 20:45:11 +02:00
hugova
017a337180 make pixel drawing faster using lookup table 2025-05-11 20:00:48 +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
hugova
3e063e9aaf move pixel-draw code 2025-05-08 21:41:46 +02:00