-
Notifications
You must be signed in to change notification settings - Fork 0
/
kernel.hlp
53 lines (48 loc) · 2.35 KB
/
kernel.hlp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
;;
; Copyright Jacques Deschênes 2023,24
; This file is part of pomme-1
;
; pomme-1 is free software: you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
; the Free Software Foundation, either version 3 of the License, or
; (at your option) any later version.
;
; pomme-1 is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
; GNU General Public License for more details.
;
; You should have received a copy of the GNU General Public License
; along with pomme-1. If not, see <http://www.gnu.org/licenses/>.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; p1Kernel help
; quick card
; diplayed in p1Monitor
; using '?' command
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
.area HELP (ABS)
.org 0x10000
p1Kernel_help:
.asciz "\n KERNEL SERVICES\n"
.asciz " CODE | FUNCTION | INPUT | OUTPUT | DESCRIPTION \n"
.asciz "--------------------------------------------------------------\n"
.asciz " 0 | RESET | NONE | NONE | reset computer\n"
.asciz " 1 | TICK | NONE | X=MSEC | return msec counter\n"
.asciz " 2 | PUTCHAR | X=CHR | NONE | print char\n"
.asciz " 3 | GETCHAR | NONE | A=CHAR | get char from term\n"
.asciz " 4 | CHAR? | NONE | A=0,-1 | char received?\n"
.asciz " 5 | CLS | NONE | NONE | clear term screen\n"
.asciz " 6 | DELBACK | NONE | NONE | delete last char\n"
.asciz " 7 | GETLINE | X=line| A=ln len | read line \n"
.asciz " | | length| X=buffer | from terminal\n"
.asciz " 8 | PUTS | X=STR | NONE | print string\n"
.asciz " 9 | PRT_INT | X=INT | |\n"
.asciz " | | A=SGN | A=LEN | print integer\n"
.asciz " A | SET_TMR | X=INT | NONE | set countdown timer\n"
.asciz " B | TIMEOUT? | NONE | A=0,-1 | check time out\n"
.asciz " C | TONE | X=MSEC| |\n"
.asciz " | | Y=FREQ| NONE | generate tone\n"
.asciz " D | FILE OP | X=FCB | X=FCB | file operation\n"
.asciz " E | RAND | NONE | X=UINT | get random #\n"
.asciz " F | SEED | X=0,n | NONE | seed prng\n"
.byte 0