Main > Code > Macros

Debug Print

Submitter: wolfmerrik



Description: A custom MACRO for creating a "Debug" value that can be displayed (via HUD). Great for analyzing values, etc.

Credits: This MACRO was written by user Kasumi on the nesmakers.com forum.

This code was found on this post: http://nesmakers.com/viewtopic.php?f=3&t=541

All original credit, of course, goes to this user.


Links:

http://nesmakers.com/viewtopic.php?f=3&t=541


Tags: asm, debug, macro

ASM Preview:

; This MACRO was written by user Kasumi on the nesmakers.com forum.

; This code was found on this post: http://nesmakers.com/viewtopic.php?f=3&t=541

; All original credit of course goes to this user, etc



MACRO DebugPrint arg0

pha; keep the current value in A, and X safely on the stack

txa

pha



lda #%10000000; This will be the last position to be written to


; This is an incomplete preview.
; Download for the full code


Download: Here

Size: 1.36 KB

Downloads: 31 (2 Users)

Rating: 5 (2 votes)

Rate:


Comments:



shnargles
Awesome
Share:


Loading...