0 Members and 2 Guests are viewing this topic.
Hello,I whipped up this ridiculously small sprite converter program this morning, for those of you feeling the crunch of less memory. It will convert the 8x8 sprite in the top left corner of the screen to hex for you, weighing only 60 bytes! I challenge - no, I *dare* you to make a smaller sprite converter.Note: This was inspired by re-reading this post: http://ourl.ca/8639/161291
That looks sweet, but you don't even ClrDraw =P I know it's for the speed and size
Quote from: Scout on March 26, 2011, 02:40:21 pmThat looks sweet, but you don't even ClrDraw =P I know it's for the speed and size I don't do anything that would take up any size. I don't even turn off the run indicator. This is in pure assembly, I'm just displaying the raw bytes from the graph screen.
Will you post the code, though?
Wow's that amazingly small :O I still prefer a more GUI-based editor though, like your other converter.Is this supposed to be a proof-of concept thing?
Note: This was inspired by re-reading this post: http://ourl.ca/8639/161291
ld hl,16 B_CALL CreateTStrng inc de ld hl,plotSScreenloop1: ld b,2loop: xor a rld daa add a,-16 adc a,40h inc de ld (de),a djnz loop ld a,l add a,12 ld l,a cp 95h jr c,loop1 B_CALL OP4ToOP1 B_CALL StoAns ret
ld hl,plotSScreenloop1: ld b,2loop: xor a rld daa add a,-16 adc a,40h B_CALL PutC djnz loop ld a,l cp h ret nc add a,12 ld l,a jr loop1