Jump to content

Photo

Session 12: Initialisation


75 replies to this topic

#76 Andrew Davie OFFLINE  

Andrew Davie

    Stargunner

  • Topic Starter
  • 1,787 posts
  • Dr.Boo
  • Location:Tasmania

Posted Mon Aug 11, 2014 4:40 AM

 lxa #0
 txs     ; SP=0 !
loop pha
 tsx
 bne loop
 pha     ; wrap SP to $FF?

Another odd 8-byte variant. This relies on 257 pushes to the stack, and lxa working with 0

Ends with X=A=0 and SP=$FF. Maybe.

 

I think the above *might* be a workable clear. 






0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users