![]() |
![]() |
#21 |
Registered User
Join Date: Jun 2016
Location: europe
Posts: 1,053
|
My first version (no wicked optimizations...): 2x30=60 bytes.
|
![]() |
![]() |
#22 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 54
Posts: 4,488
|
Bah... 68 byte
![]() |
![]() |
![]() |
#23 |
Registered User
Join Date: Feb 2017
Location: Denmark
Posts: 1,182
|
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. |
![]() |
![]() |
#24 |
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,351
|
|
![]() |
![]() |
#25 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 54
Posts: 4,488
|
|
![]() |
![]() |
#26 |
Registered User
Join Date: Feb 2017
Location: Denmark
Posts: 1,182
|
|
![]() |
![]() |
#27 |
Registered User
Join Date: Jun 2016
Location: europe
Posts: 1,053
|
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). |
![]() |
![]() |
#28 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 54
Posts: 4,488
|
62..
|
![]() |
![]() |
#29 |
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,351
|
Ok, now i've definitely missed something important...
![]() |
![]() |
![]() |
#30 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 54
Posts: 4,488
|
Ok, 58, but I'm not sure it is right because my brain stopped working
![]() |
![]() |
![]() |
#31 | |
Registered User
Join Date: Feb 2017
Location: Denmark
Posts: 1,182
|
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 ![]() |
|
![]() |
![]() |
#32 | |
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,351
|
Quote:
Besides, is DDFSTRT/DDFSTOP high byte always guaranteed to be 0 ? |
|
![]() |
![]() |
#33 | |
Registered User
Join Date: Feb 2017
Location: Denmark
Posts: 1,182
|
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. |
|
![]() |
![]() |
#34 |
Registered User
Join Date: Jun 2016
Location: europe
Posts: 1,053
|
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).
|
![]() |
![]() |
#35 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 54
Posts: 4,488
|
|
![]() |
![]() |
#36 | |
Registered User
Join Date: Feb 2017
Location: Denmark
Posts: 1,182
|
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 ![]() |
|
![]() |
![]() |
#37 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 54
Posts: 4,488
|
|
![]() |
![]() |
#38 |
Registered User
Join Date: Feb 2017
Location: Denmark
Posts: 1,182
|
|
![]() |
![]() |
#39 |
Registered User
Join Date: Jun 2016
Location: europe
Posts: 1,053
|
Down to 56 bytes. This one I would classify as wicked.
|
![]() |
![]() |
#40 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 54
Posts: 4,488
|
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 | |
![]() |
||||
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 |
|
|