Skip to content

Commit

Permalink
Fix some code comment and import position
Browse files Browse the repository at this point in the history
  • Loading branch information
intoinside committed Mar 26, 2023
1 parent 21c0cd1 commit efd2411
Show file tree
Hide file tree
Showing 15 changed files with 136 additions and 113 deletions.
7 changes: 2 additions & 5 deletions lib/cia-global.asm
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
#importonce

#import "cia.asm"

/*
* Requires KickAssembler v5.x
* (c) 2022 Raffaele Intorcia
*/
#importonce
.filenamespace c128lib

.macro @c128lib_SetVICBank(bank) { SetVICBank(bank) }
Expand Down
3 changes: 1 addition & 2 deletions lib/cia.asm
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/*
* Requires KickAssembler v5.x
* (c) 2022 Raffaele Intorcia
* c128lib - Cia
*
* References available at
* https://c128lib.github.io/Reference/Cia
Expand Down
4 changes: 3 additions & 1 deletion lib/io-global.asm
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#import "io.asm"
#importonce

#import "io.asm"

.filenamespace c128lib

.macro @c128lib_OpenIOChannel(filenumber, devicenumber, secondary) { OpenIOChannel(filenumber, devicenumber, secondary) }
Expand Down
12 changes: 5 additions & 7 deletions lib/io.asm
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
#import "common/lib/common.asm"
#import "common/lib/kernal.asm"

/*
* Set of macros for handling IO.
*
* Requires KickAssembler v5.x
* (c) 2022 Raffaele Intorcia
* c128lib - I/o
*/
#importonce

#import "common/lib/common.asm"
#import "common/lib/kernal.asm"

.filenamespace c128lib

/*
Expand Down
4 changes: 3 additions & 1 deletion lib/mmu-global.asm
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#import "mmu.asm"
#importonce

#import "mmu.asm"
.filenamespace c128lib


.macro @c128lib_SetCommonRAM(config) { SetCommonRAM(config) }
.macro @c128lib_SetMMUConfiguration(config) { SetMMUConfiguration(config) }
.macro @c128lib_SetMMULoadConfiguration(config) { SetMMULoadConfiguration(config) }
Expand Down
7 changes: 3 additions & 4 deletions lib/mmu.asm
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
/*
* Requires KickAssembler v5.x
* (c) 2022 Raffaele Intorcia
* c128lib - Mmu
*
* References available at
* https://c128lib.github.io/Reference/Mmu
* https://c128lib.github.io/Reference/D500
*/
#import "common/lib/kernal.asm"

#importonce

#import "common/lib/kernal.asm"

.filenamespace c128lib

.namespace Mmu {
Expand Down
4 changes: 3 additions & 1 deletion lib/mos8502-global.asm
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#import "mos8502.asm"
#importonce

#import "mos8502.asm"

.filenamespace c128lib

.macro @c128lib_configureMemory(config) { configureMemory(config) }
6 changes: 3 additions & 3 deletions lib/mos8502.asm
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* Requires KickAssembler v5.x
* (c) 2022 Raffaele Intorcia
* c128lib - 8502
*
* Ref: https://www.cubic.org/~doj/c64/mapping128.pdf
* References available at
* https://www.cubic.org/~doj/c64/mapping128.pdf
*/
#importonce

Expand Down
3 changes: 1 addition & 2 deletions lib/sid.asm
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/*
* Requires KickAssembler v5.x
* (c) 2022 Raffaele Intorcia
* c128lib - Sid
*
* References available at
* https://c128lib.github.io/Reference/Sid
Expand Down
4 changes: 3 additions & 1 deletion lib/sprites-global.asm
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#import "sprites.asm"
#importonce

#import "sprites.asm"

.filenamespace c128lib

.macro @c128lib_SetSpriteXPosition(spriteNo, x) { SetSpriteXPosition(spriteNo, x) }
Expand Down
8 changes: 4 additions & 4 deletions lib/sprites.asm
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#import "vic2.asm"

/*
* Requires KickAssembler v5.x
* (c) 2022 Raffaele Intorcia
* c128lib - Sprites
*/
#importonce

#import "vic2.asm"

.filenamespace c128lib

/*
Expand Down
4 changes: 3 additions & 1 deletion lib/vdc-global.asm
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#import "vdc.asm"
#importonce

#import "vdc.asm"

.filenamespace c128lib

.macro @c128lib_Go40() { Go40() }
Expand Down
9 changes: 5 additions & 4 deletions lib/vdc.asm
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#import "common/lib/kernal.asm"
#import "common/lib/screen-editor.asm"

/*
* Vdc
* c128lib - Vdc
*
* References available at
* https://c128lib.github.io/Reference/Vdc
Expand All @@ -12,6 +9,10 @@
* https://gitlab.com/aaron-baugher/farming-game-128/-/blob/master/vdc80lib.a
*/
#importonce

#import "common/lib/kernal.asm"
#import "common/lib/screen-editor.asm"

.filenamespace c128lib

.namespace Vdc {
Expand Down
4 changes: 3 additions & 1 deletion lib/vic2-global.asm
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#import "vic2.asm"
#importonce

#import "vic2.asm"

.filenamespace c128lib

.macro @c128lib_SetBorderAndBackgroundColor(borderColor, backgroundColor) { SetBorderAndBackgroundColor(borderColor, backgroundColor) }
Expand Down
Loading

0 comments on commit efd2411

Please sign in to comment.