This file contains hidden or 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
| #!/usr/bin/env node | |
| const userMeta = JSON.parse(process.env.READYUSER || "{}"); | |
| function readStdin(callback) { | |
| let data = ""; | |
| process.stdin.setEncoding("utf8"); | |
| process.stdin.on("data",(chunk) => { |
This file contains hidden or 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
| #!/usr/bin/env node | |
| function readStdin(callback) { | |
| let data = ""; | |
| process.stdin.setEncoding("utf8"); | |
| process.stdin.on("data", (chunk) => (data += chunk)); | |
| process.stdin.on("end", () => callback(data.trim())); | |
| } | |
| function getMoonInfo(date = new Date()) { |
This file contains hidden or 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
| #!/usr/bin/env node | |
| import { Parser } from "expr-eval"; | |
| function readStdin(callback) { | |
| let data = ""; | |
| process.stdin.setEncoding("utf8"); | |
| process.stdin.on("data",(chunk) => { |
This file contains hidden or 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
| pgfetch_ = $1b | |
| ; RegPtr -> C64 Memory Buffer to fetch | |
| ; C <- Set on failure to fetch | |
| ; C <- Clr on successful fetch | |
| pgstash_ = $1e | |
| ; RegPtr -> C64 Memory Buffer to stash | |
| ; C <- Set on failure to stash | |
| ; C <- Clr on successful stash |
This file contains hidden or 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
| unldcsum ;--- Unload checksum.lib --- | |
| .block | |
| lda chloaded | |
| beq done ;Not loaded | |
| ldx #"c" ;checksum.lib | |
| ldy #"h" | |
| lda #slunload ;Unload flag | |
| jsr unldlib | |
This file contains hidden or 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
| chloaded .byte 0 | |
| ldchksum ;--- Load checksum.lib --- | |
| .block | |
| lda chloaded | |
| bne done ;Already loaded | |
| ldx #"c" ;checksum.lib | |
| ldy #"h" | |
| lda #3 ;3 pages, no flags |
This file contains hidden or 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
| ;--- Unload checksum.lib --- | |
| ldx #"c" ;checksum.lib | |
| ldy #"h" | |
| lda #slunload ;Unload flag | |
| jsr unldlib |
This file contains hidden or 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
| ;--- Load checksum.lib --- | |
| ldx #"c" ;checksum.lib | |
| ldy #"h" | |
| lda #3 ;3 pages, no flags | |
| jsr loadlib | |
| ;A <- page address of library | |
| ;--- Link checksum.lib --- |
This file contains hidden or 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
| maketab .byte $4c,$06,$00 ;maketab_ = $06 | |
| initcrc .byte $4c,$09,$00 ;initcrc_ = $09 | |
| updc16 .byte $4c,$0f,$00 ;updc16_ = $0f | |
| getcrc .byte $4c,$15,$00 ;getcrc_ = $15 |
This file contains hidden or 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
| #inc_h "checksum" | |
| maketab jmp maketab_ | |
| initcrc jmp initcrc_ | |
| updc16 jmp updc16_ | |
| getcrc jmp getcrc_ |
NewerOlder