Talk:Multibyte constant

From NESdev Wiki
Revision as of 04:00, 29 June 2015 by Zzo38 (talk | contribs) (Created page with "Here is the Unofficial-MagicKit version: <pre> ; Implementation of multibyte constants for Unofficial-MagicKit. ; This file is in the public domain. macro mbyt macset 2,4,\...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Here is the Unofficial-MagicKit version:

; Implementation of multibyte constants for Unofficial-MagicKit.
; This file is in the public domain.

	macro mbyt
	macset 2,4,\$1>1
	macgoto mbyt_\2
	endm

	macro mbyt_0
	endm

	macro mbyt_1
	macset 2,2,1
	macset 2,5,2
	db $\2
	mbyt_0 \>1
	macset 1,1,1
	mbyt_0 \>1
	macset 1,1,1
	macgoto mbyt
	endm

; Example:
;	mbyt 09F91102 9D74E35B D84156C5 635688C0

--Zzo38 (talk) 22:00, 28 June 2015 (MDT)