27 July 2022, 07:10 | #21 |
Registered User
Join Date: Jun 2016
Location: europe
Posts: 1,039
|
My first version (no wicked optimizations...): 2x30=60 bytes.
|
27 July 2022, 13:05 | #22 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,468
|
Bah... 68 byte
|
27 July 2022, 16:28 | #23 |
Registered User
Join Date: Feb 2017
Location: Denmark
Posts: 1,099
|
Also 60 bytes, but unlike a/b it's not because I'm saving my good tricks for round 2...
Still have an annoying andi.w #3,d4 in there that I haven't found a space saving way of avoiding. |
27 July 2022, 16:53 | #24 |
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,323
|
|
27 July 2022, 17:08 | #25 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,468
|
|
27 July 2022, 17:18 | #26 |
Registered User
Join Date: Feb 2017
Location: Denmark
Posts: 1,099
|
|
27 July 2022, 17:48 | #27 |
Registered User
Join Date: Jun 2016
Location: europe
Posts: 1,039
|
Actually not saving anyhthing, just haven't found any great optimizations ;p.
Now I'm having another look, validation changed a little... it's down to 58 bytes (no, it wasn't #3 ;p). |
27 July 2022, 17:53 | #28 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,468
|
62..
|
27 July 2022, 18:13 | #29 |
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,323
|
Ok, now i've definitely missed something important...
|
27 July 2022, 18:19 | #30 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,468
|
Ok, 58, but I'm not sure it is right because my brain stopped working
|
27 July 2022, 18:38 | #31 | |
Registered User
Join Date: Feb 2017
Location: Denmark
Posts: 1,099
|
Quote:
Aren't you testing it? Attached is what I'm using (harness is in C since I only have so much code golfing time ) Compile with vc +kick13 -O2 -o test.exe main.c fetch.s |
|
27 July 2022, 19:06 | #32 | |
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,323
|
Quote:
Besides, is DDFSTRT/DDFSTOP high byte always guaranteed to be 0 ? |
|
27 July 2022, 19:38 | #33 | |
Registered User
Join Date: Feb 2017
Location: Denmark
Posts: 1,099
|
Quote:
I.e. in my code I expect FMODE=$0..$FFFF, DDFSTRT=$0.$FF,DDFSTOP=$0.$FF, chipset=$0..$2, res=$0..$2. Ultimately it's just for fun, but I'll let Ross decide the true boundary conditions. Personally I'm fine if somebody gets a good result by assuming DDFSTRT <= 0x10 <= DDFSTOP <= 0xf0 or whatever. |
|
27 July 2022, 19:40 | #34 |
Registered User
Join Date: Jun 2016
Location: europe
Posts: 1,039
|
I'm using bad ddfstart/ddfstop upper byte (testing with start from $ff18 to $ffe0, and end from start to $ffe0, vs. original c code). Fmode I set to $fffc|<0-3>. The rest is expected to be valid (res/chipset 0-2).
|
27 July 2022, 20:14 | #35 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,468
|
|
27 July 2022, 20:32 | #36 | |
Registered User
Join Date: Feb 2017
Location: Denmark
Posts: 1,099
|
Quote:
Anyway, that's just how I tested my 58B version (testing now for $0.$FFFF FMODE since y'all be critical :P), not saying this is the proper way to judge it |
|
27 July 2022, 20:39 | #37 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,468
|
|
27 July 2022, 21:01 | #38 |
Registered User
Join Date: Feb 2017
Location: Denmark
Posts: 1,099
|
|
27 July 2022, 21:06 | #39 |
Registered User
Join Date: Jun 2016
Location: europe
Posts: 1,039
|
Down to 56 bytes. This one I would classify as wicked.
|
28 July 2022, 13:30 | #40 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,468
|
I re-observed the 58 byte routine and there are so many similar values and bit positions that it makes you think that something can be 'recycled', but I can't think of anything obvious, so is it possible that you completely refactored the original routine?
Anyway I will soon give up and I will declare you the winner Is the word 'wicked' that scares me, I dare not imagine what you have done |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Exact functioning of DDFSTRT & STOP? | TommoH | Coders. Asm / Hardware | 19 | 04 July 2023 21:31 |
OCS + DDFSTRT=$30 - Losing spr6? | Antiriad_UK | Coders. Asm / Hardware | 5 | 18 December 2019 14:43 |
diwstrt, ddfstrt and hires | leonard | Coders. Asm / Hardware | 6 | 02 December 2019 00:38 |
7th sprite corrupt with DDFSTRT of 0x30 | FSizzle | Coders. Asm / Hardware | 9 | 11 November 2017 17:36 |
DDFSTOP question | FrenchShark | Coders. General | 5 | 08 August 2009 20:42 |
|
|