migrated code to pragma-like ROM layout definitions
This commit is contained in:
1 parent
435ff6bbc2
commit
63c0404313
326 files changed
+1553
-1840
No files matched your search
@@ -1,4 +1,6 @@
|
||||
#if ROM_LAYOUT_STD || (ROM_LAYOUT_M65 && SEGMENT_KERNAL_0)
|
||||
// #LAYOUT# STD * #TAKE
|
||||
// #LAYOUT# * KERNAL_0 #TAKE
|
||||
// #LAYOUT# * * #IGNORE
|
||||
|
||||
//
|
||||
// Print configured features on startup banner
|
||||
@@ -13,6 +15,3 @@ print_features:
|
||||
jmp print_kernal_message
|
||||
|
||||
#endif // CONFIG_SHOW_FEATURES
|
||||
|
||||
|
||||
#endif // ROM layout
|
||||
@@ -1,4 +1,6 @@
|
||||
#if ROM_LAYOUT_STD || (ROM_LAYOUT_M65 && SEGMENT_KERNAL_0)
|
||||
// #LAYOUT# STD * #TAKE
|
||||
// #LAYOUT# * KERNAL_0 #TAKE
|
||||
// #LAYOUT# * * #IGNORE
|
||||
|
||||
//
|
||||
// Print the hex value in .A as two digits
|
||||
@@ -49,6 +51,3 @@ print_hex_byte:
|
||||
!: jmp JCHROUT
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
#endif // ROM layout
|
||||
@@ -1,4 +1,6 @@
|
||||
#if ROM_LAYOUT_STD || (ROM_LAYOUT_M65 && SEGMENT_KERNAL_0)
|
||||
// #LAYOUT# STD * #TAKE
|
||||
// #LAYOUT# * KERNAL_0 #TAKE
|
||||
// #LAYOUT# * * #IGNORE
|
||||
|
||||
//
|
||||
// Print one of the standard Kernal messages, index in .X
|
||||
@@ -14,6 +16,3 @@ print_kernal_message:
|
||||
bpl !- // 0 marks end of string
|
||||
and #$7F
|
||||
jmp JCHROUT
|
||||
|
||||
|
||||
#endif // ROM layout
|
||||
@@ -1,4 +1,6 @@
|
||||
#if ROM_LAYOUT_STD || (ROM_LAYOUT_M65 && SEGMENT_KERNAL_0)
|
||||
// #LAYOUT# STD * #TAKE
|
||||
// #LAYOUT# * KERNAL_0 #TAKE
|
||||
// #LAYOUT# * * #IGNORE
|
||||
|
||||
//
|
||||
// Print video system on startup banner
|
||||
@@ -16,6 +18,3 @@ print_pal_ntsc:
|
||||
jmp print_kernal_message
|
||||
|
||||
#endif // CONFIG_SHOW_PAL_NTSC
|
||||
|
||||
|
||||
#endif // ROM layout
|
||||
@@ -1,4 +1,6 @@
|
||||
#if ROM_LAYOUT_STD || (ROM_LAYOUT_M65 && SEGMENT_KERNAL_0)
|
||||
// #LAYOUT# STD * #TAKE
|
||||
// #LAYOUT# * KERNAL_0 #TAKE
|
||||
// #LAYOUT# * * #IGNORE
|
||||
|
||||
//
|
||||
// Print the carriage return
|
||||
@@ -7,6 +9,3 @@
|
||||
print_return:
|
||||
lda #$0D // carriage return code
|
||||
jmp JCHROUT
|
||||
|
||||
|
||||
#endif // ROM layout
|
||||
@@ -1,4 +1,6 @@
|
||||
#if ROM_LAYOUT_STD || (ROM_LAYOUT_M65 && SEGMENT_KERNAL_0)
|
||||
// #LAYOUT# STD * #TAKE
|
||||
// #LAYOUT# * KERNAL_0 #TAKE
|
||||
// #LAYOUT# * * #IGNORE
|
||||
|
||||
//
|
||||
// Print the space character
|
||||
@@ -7,6 +9,3 @@
|
||||
print_space:
|
||||
lda #$20 // space code
|
||||
jmp JCHROUT
|
||||
|
||||
|
||||
#endif // ROM layout
|
||||
@@ -1,4 +1,6 @@
|
||||
#if ROM_LAYOUT_STD || (ROM_LAYOUT_M65 && SEGMENT_KERNAL_0)
|
||||
// #LAYOUT# STD * #TAKE
|
||||
// #LAYOUT# * KERNAL_0 #TAKE
|
||||
// #LAYOUT# * * #IGNORE
|
||||
|
||||
// printf()-like routine for simplifying debugging
|
||||
|
||||
@@ -142,6 +144,3 @@ printf_retreat:
|
||||
rts
|
||||
|
||||
#endif // CONFIG_DBG_PRINTF
|
||||
|
||||
|
||||
#endif // ROM layout
|
||||
Reference in new issue
Block a user