Skip to content

Commit 622acb8

Browse files
author
Michał Taszycki
committed
Change import directives into preprocessor
1 parent 19c581e commit 622acb8

8 files changed

Lines changed: 17 additions & 16 deletions

File tree

lib/64core/breakpoints.asm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#importonce
12
.filenamespace break
23

34
.var break_file = null

lib/64core/common.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.importonce
1+
#importonce
22

33
// TODO: Add docs
44

lib/64core/encoding.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.importonce
1+
#importonce
22
.function char(number) {
33
.var chars = "@abcdefghijklmnopqrstuvwxyz[Ĝ]„ğ !\"#$%&'()*+,-./0123456789:;<=>?ŀABCDEFGHIJKLMNOPQRSTUVWXYZś\ŝŞ_`šŢţŤťŦŧŨũŪūŬŭŮůŰűŲųŴŵŶŷŸŹź{|}~ſƀƁƂƃƄƅƆƇƈƉƊƋƌƍƎƏƐƑƒƓƔƕƖƗƘƙƚƛƜƝƞƟƠ¡¢ƣ¤¥¦§¨©ª«¬ƭ®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"
44
.return chars.charAt(number)

lib/64core/kernal.asm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
.importonce
2-
.import source "./common.asm"
3-
.import source "../lib/64core/memory.asm"
1+
#importonce
2+
#import "64core/common.asm"
3+
#import "64core/memory.asm"
44

55
// see http://www.ffd2.com/fridge/docs/c64-diss.html#a3bf
66
// and http://members.tripod.com/~Frank_Kontros/kernal/alpha.htm

lib/64core/math.asm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
.importonce
2-
.import source "./common.asm"
1+
#importonce
2+
#import "64core/common.asm"
33

44
.macro int24(value) {
55
.fill bits_to_bytes(24), extract_byte(value, i)

lib/64core/memory.asm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
.importonce
2-
.import source "./common.asm"
3-
.import source "./math.asm"
1+
#importonce
2+
#import "64core/common.asm"
3+
#import "64core/math.asm"
44

55
.pseudocommand mov source: dest {
66
:_mov 1: source: dest

lib/64core/version.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.importonce
1+
#importonce
22
.const _64CORE_VERSION_MAJOR = 0
33
.const _64CORE_VERSION_MINOR = 1
44
.const _64CORE_VERSION_PATCH = 0

spec/encoding_spec.asm

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
.import source "../lib/64core/encoding.asm"
2-
.import source "64spec.asm"
1+
#import "../lib/64core/encoding.asm"
2+
#import "64spec.asm"
33

4-
.import source "../lib/64core/kernal.asm"
5-
.import source "../lib/64core/memory.asm"
6-
.import source "./support/state_restoration.asm"
4+
#import "../lib/64core/kernal.asm"
5+
#import "../lib/64core/memory.asm"
6+
#import "./support/state_restoration.asm"
77

88
.const TOP_LEFT_CHAR = $0400
99
sfspec: :init_spec()

0 commit comments

Comments
 (0)