Assembly Language - General Init

From NerdConsole
Revision as of 13:59, 14 January 2024 by NerdOfEpic (talk | contribs) (Created page with "<source lang="ca65" line> ; Purpose: General initialization. ; For: NerdConsole (65C02 Assembly, ca65 format) ; By: David Stephens (NerdOfEpic) ; License: Public Domain - Can be used or modified by anyone ; for any purpose. cld ; Make sure we aren't in BCD mode sei ; Allow interrupts ; Make sure the stack pointer is in the right place ldx #$FF txs </source>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
; Purpose: General initialization.
; For: NerdConsole (65C02 Assembly, ca65 format)
; By: David Stephens (NerdOfEpic)
; License: Public Domain - Can be used or modified by anyone 
;                          for any purpose.


	cld        ; Make sure we aren't in BCD mode
	sei        ; Allow interrupts

	; Make sure the stack pointer is in the right place
	ldx #$FF
	txs