Jump to content

3

Omegamatrix's Blog



Economical Initialization

Posted by Omegamatrix, in 2600 Routines 02 June 2015 · 656 views
Initialization
A while back I did an entry on Faster Initialization for the 2600. Today's entry is about squeezing the bytes out of the Initialization routine to the bare minimum. Here is a routine I came up with a while back:;Economical 8 byte initialization routine;By Omegamatrix cld.loopClear: ldx #$0A ; ASL opcode = $0A inx txs pha bne...


Faster Initialization

Posted by Omegamatrix, in 2600 Routines 12 May 2014 · 1,064 views
Initialization
Most (not all) Atari 2600 games use an initialization routine that clears the RIOT ram and sets the TIA registers to a known state. The most optimal code to do this is: cld ldx #0 txa.loopClear: dex txs pha bne .loopClear
Andrew Davie wrote that, I think. Brilliant piece of code really. :) Clears everything and leaves A=0, X=0,...





October 2018

S M T W T F S
 123456
78910111213
14151617181920
21 222324252627
28293031   

Recent Comments

Latest Visitors

0 user(s) viewing

0 members, 0 guests, 0 anonymous users