Jump to content

Photo

My 128B entries from Outline 2k18


6 replies to this topic

#1 ivop OFFLINE  

ivop

    Dragonstomper

  • 726 posts
  • Location:The Netherlands

Posted Mon Jun 11, 2018 9:18 AM

Hi,

 

Here are both my 128B compo entries from this year, including source code. I came in 5th and 6th. Let's see how much smaller we can get these ;)

 

Regards,

Ivo

 

Attached Files



#2 dmsc ONLINE  

dmsc

    Moonsweeper

  • 409 posts
  • Location:Viņa del Mar, Chile

Posted Mon Jun 11, 2018 9:25 PM

Hi!
 

Hi,
 
Here are both my 128B compo entries from this year, including source code. I came in 5th and 6th. Let's see how much smaller we can get these ;)
 
Regards,
Ivo


A good trick is using the stack instead of indexing a table, but then you need to disable NMI first. Also, initialize the PM graphics using the "LDY #4" so you don't need the "INX".

This is 6 bytes less.

Attached Files

  • Attached File  main.asm   1.04KB   38 downloads
  • Attached File  main.obx   122bytes   35 downloads


#3 ivop OFFLINE  

ivop

    Dragonstomper

  • Topic Starter
  • 726 posts
  • Location:The Netherlands

Posted Tue Jun 12, 2018 5:09 AM

Nice trick, the way you use the stack pointer!



#4 dmsc ONLINE  

dmsc

    Moonsweeper

  • 409 posts
  • Location:Viņa del Mar, Chile

Posted Tue Jun 12, 2018 9:36 PM

Hi!
 

Nice trick, the way you use the stack pointer!


8 more bytes shaved: 116 bytes.

Attached Files



#5 dmsc ONLINE  

dmsc

    Moonsweeper

  • 409 posts
  • Location:Viņa del Mar, Chile

Posted Wed Jun 13, 2018 9:30 PM

Hi!

And a new attempt, now at 114 bytes. I also included an NTSC version (with faster musing).

Note that if you remove the "IVO" signature at the end, the size is really 111 bytes!

Attached Files


Edited by dmsc, Wed Jun 13, 2018 9:31 PM.


#6 ivop OFFLINE  

ivop

    Dragonstomper

  • Topic Starter
  • 726 posts
  • Location:The Netherlands

Posted Thu Jun 14, 2018 10:07 AM

Note that if you remove the "IVO" signature at the end, the size is really 111 bytes!

 

Have you ever entered a 128/256B compo yourself? You seem pretty good at it :)

Yeah, I added that signature because I had 3 bytes left. Your 'knt' variable used the I for a while, but that's gone now, too!



#7 dmsc ONLINE  

dmsc

    Moonsweeper

  • 409 posts
  • Location:Viņa del Mar, Chile

Posted Thu Jun 14, 2018 9:27 PM

Hi!
 

Have you ever entered a 128/256B compo yourself? You seem pretty good at it :)
Yeah, I added that signature because I had 3 bytes left. Your 'knt' variable used the I for a while, but that's gone now, too!


Never participated in an 128/256B compo, I like optimizing code (it's like a puzzle), but I'm not that creative to think on what to do ;) Perhaps I will think on something new to write on a few bytes.

This is a new version, 3 bytes less by avoiding using the Y register when drawing the stars. Again, this is 108 bytes without the signature, so you have 20 bytes left to add a melody :P

Attached Files






0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users