-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing commodore devnum/filevars
This allows e.g. commodore fopen to link on non-c64 targets.
- Loading branch information
1 parent
5fcba40
commit a83c611
Showing
10 changed files
with
132 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
; Copyright 2023 LLVM-MOS Project | ||
; Licensed under the Apache License, Version 2.0 with LLVM Exceptions. | ||
; See https://github.com/llvm-mos/llvm-mos-sdk/blob/main/LICENSE for license | ||
; information. | ||
|
||
; Originally from cc65. Modified from original version. | ||
|
||
; | ||
; Oliver Schmidt, 2010-02-14 | ||
; | ||
|
||
.include "c128.inc" | ||
|
||
.globl devnum | ||
.zeropage devnum | ||
|
||
devnum = DEVNUM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
; Copyright 2024 LLVM-MOS Project | ||
; Licensed under the Apache License, Version 2.0 with LLVM Exceptions. | ||
; See https://github.com/llvm-mos/llvm-mos-sdk/blob/main/LICENSE for license | ||
; information. | ||
|
||
; Originally from cc65. Modified from original version. | ||
|
||
; 2002-11-15, Ullrich von Bassewitz | ||
; 2019-11-08, Greg King | ||
; | ||
; Variables used for CBM file I/O | ||
; | ||
|
||
.globl curunit | ||
|
||
.include "cx16.inc" | ||
|
||
|
||
.bss | ||
curunit: | ||
.fill 1 | ||
|
||
|
||
.section .init,"axR",@progbits | ||
initcurunit: | ||
lda DEVNUM | ||
bne L0 | ||
lda #8 ; Default is SD card | ||
sta DEVNUM | ||
L0: sta curunit | ||
rts | ||
|
||
|
||
.section .fini,"axR",@progbits | ||
updatedevnum: | ||
lda curunit | ||
sta DEVNUM | ||
rts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
; Copyright 2024 LLVM-MOS Project | ||
; Licensed under the Apache License, Version 2.0 with LLVM Exceptions. | ||
; See https://github.com/llvm-mos/llvm-mos-sdk/blob/main/LICENSE for license | ||
; information. | ||
|
||
; Originally from cc65. Modified from original version. | ||
|
||
; | ||
; Ullrich von Bassewitz, 15.11.2002 | ||
; | ||
; Variables used for Mega65 file I/O | ||
; | ||
|
||
.globl curunit | ||
|
||
|
||
.bss | ||
curunit: | ||
.fill 1 | ||
|
||
|
||
.section .init,"axR",@progbits | ||
initcurunit: | ||
lda #8 ; Default is disk | ||
sta curunit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
; Copyright 2024 LLVM-MOS Project | ||
; Licensed under the Apache License, Version 2.0 with LLVM Exceptions. | ||
; See https://github.com/llvm-mos/llvm-mos-sdk/blob/main/LICENSE for license | ||
; information. | ||
|
||
; Originally from cc65. Modified from original version. | ||
|
||
; | ||
; Oliver Schmidt, 2010-02-14 | ||
; | ||
|
||
.include "pet.inc" | ||
|
||
.globl devnum | ||
.zeropage devnum | ||
|
||
devnum = DEVNUM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
; Copyright 2024 LLVM-MOS Project | ||
; Licensed under the Apache License, Version 2.0 with LLVM Exceptions. | ||
; See https://github.com/llvm-mos/llvm-mos-sdk/blob/main/LICENSE for license | ||
; information. | ||
|
||
; Originally from cc65. Modified from original version. | ||
|
||
; | ||
; Oliver Schmidt, 2010-02-14 | ||
; | ||
|
||
.include "vic20.inc" | ||
|
||
.globl devnum | ||
.zeropage devnum | ||
|
||
devnum = DEVNUM |