GetKey Codes

GetKey Key Codes

Key Codes returned from the GetKey ROM Call. Note that GetKey accepts inputs from Secondary functions (2nd), Alpha functions (ALPHA), and Alpha-Lower functions (ALPHA-ALPHA) keys.

The table of key code values is stored at (KeyExtend).

kExtendEcho2 ($FC) holds the last key code returned from GetKey, which is also stored into the accumulator after calling GetKey.

Regular Key Codes

Key Code Equate Key Code Equate Key Code Equate
> kRight 01ドル < kLeft 02ドル Λ kUp 03ドル
V kDown 04ドル [ENTER] kEnter 05ドル [CLEAR] kClear 09ドル
[ZOOM] kZoom 2ドルE [STAT] kStat 31ドル [MATH] kMath 32ドル
[VARS] kVars 35ドル [GRAPH] kGraph 44ドル [MODE] kMode 45ドル
[WINDOW] kWindow 48ドル [Y=] kYEqu 49ドル [TRACE] kTrace 5ドルA
[+] kAdd 80ドル [-] kSub 81ドル [*] kMul 82ドル
[÷] kDiv 83ドル [(] kLParen 85ドル [)] kRParen 86ドル
[STO=>] kSto 8ドルA [,] kComma 8ドルB [(-)] kChs 8ドルC
[.] kDecPnt 8ドルD [0] k0 8ドルE [1] k1 8ドルF
[2] k2 90ドル [3] k3 91ドル [4] k4 92ドル
[5] k5 93ドル [6] k6 94ドル [7] k5 95ドル
[8] k8 96ドル [9] k9 97ドル [X,T,θ,n] kVarX $B4
[SIN] kSin $B7 [COS] kCos $B9 [TAN] kTan $BB
[X2] kSquare $BD [LN] kLn $BF [LOG] kLog $C1

Secondary Function Key Codes

Key Code Equate Key Code Equate Key Code Equate
[INS] kIns 0ドルB [RCL] kRecall 0ドルC [ENTRY] kLastEnt 0ドルD
[2nd] + < kBOL 0ドルE [2nd] + > kEOL 0ドルF [DRAW] kDraw 2ドルF
[TEST] kTest 33ドル [MEM] kMem 36ドル [MATRIX] kMatrix 37ドル
[DISTR] kDist 38ドル [ANGLE] kAngle 39ドル [LIST] kList 3ドルA
[CALC] kCalc 3ドルB [CATALOG] kCatalog 3ドルE [OFF] kOff 3ドルF
[QUIT] kQuit 40ドル [LINK] kLinkIO 41ドル [STAT PLOT] kStatEd 43ドル
[TABLE] kTable 4ドルA [TBLSET] kTblSet 4ドルB [FORMAT] kFormat 57ドル
[[] kLBrack 87ドル []] kRBrack 88ドル [EE] kEE 98ドル
[ img1.png ] kPi $B5 [SIN-1] kASin $B8 [COS-1] kACos $BA
[TAN-1] kATan $BC [√] kSqrt $BE [ex] kExp $C0
[10x] kALog $C2 [Ans] kAns $C5

These are also Secondary function key codes, but note that they overlap with the Alpha-Lower keys. It is important to check the LwrCaseActive flag to make sure that the key press is indeed a secondary function key instead of a lower case key.

Key Code Equate Key Code Equate Key Code Equate
[{] kLBrace $EC [}] kRBrace $ED [i] kI $EE
[e] kCONSTeA $EF [L1] kL1A $F3 [L2] kL2A $F4
[L3] kL3A $F5 [L4] kL4A $F6 [L5] kL5A $F7
[L6] kL6A $F8 [u] kUnA $F9 [v] kVnA $FA
[w] kWnA FB

Alpha Key Codes

Key Code Equate Key Code Equate Key $Code Equate
[SOLVE] kAlphaEnter 06ドル Page Up kAlphaUp 07ドル Page Down kAlphaDown 08ドル (1)
[_] kSpace 99ドル [A] kCapA 9ドルA [B] kCapB 9ドルB
[C] kCapC 9ドルC [D] kCapD 9ドルD [E] kCapE 9ドルE
[F] kCapF 9ドルF [G] kCapG $A0 [H] kCapH $A1
[I] kCapI $A2 [J] kCapJ $A3 [K] kCapK $A4
[L] kCapL $A5 [M] kCapM $A6 [N] kCapN $A7
[O] kCapO $A8 [P] kCapP $A9 [Q] kCapQ $AA
[R] kCapR $AB [S] kCapS $AC [T] kCapT $AD
[U] kCapU $AE [V] kCapV $AF [W] kCapW $B0
[X] kCapX $B1 [Y] kCapY $B2 [Z] kCapZ $B3
[:] kColon $C6 [?] kQuest $CA ["] kQuote $CB
[θ] kTheta $CC

Alpha-Lower Key Codes

To Enable Alpha-Lower you need to set the LwrCaseActive Flag. Note that these values do overlap with some of the secondary function key values so you will need to test LwrCaseActive to make sure it is really Alpha-Lower instead of a secondary function key.

SET LwrCaseActive,(IY+AppLwrCaseFlag)
Key Code Equate Key Code Equate Key Code Equate
[a] kLa $E2 [b] kLb $E3 [c] kLc $E4
[d] kLd $E5 [e] kLe $E6 [f] kLf $E7
[g] kLg $E8 [h] kLh $E9 [i] kLi $EA
[j] kLj $EB [k] kLk $EC [l] kLl $ED
[m] kLm $EE [n] kLSmalln $EF [o] kLo $F0
[p] kLp $F1 [q] kLq $F2 [r] kLSmallr $F3
[s] kLs $F4 [t] kLt $F5 [u] kLu $F6
[v] kLv $F7 [w] kLw $F8 [x] kLx $F9
[y] kLy $FA [z] kLz $FB

Information taken from Sigma's Learn ASM in 28 days, Key Codes

page revision: 22, last edited: 27 Jun 2007 20:36
Unless otherwise stated, the content of this page is licensed under GNU Free Documentation License.
Click here to edit contents of this page.
Click here to toggle editing of individual sections of the page (if possible). Watch headings for an "edit" link when available.
Append content without editing the whole page source.
Check out how this page has evolved in the past.
If you want to discuss contents of this page - this is the easiest way to do it.
View and manage file attachments for this page.
A few useful tools to manage this Site.
Change the name (also URL address, possibly the category) of the page.
View wiki source for this page without editing.
View/set parent page (used for creating breadcrumbs and structured layout).
Notify administrators if there is objectionable content in this page.
Something does not work as expected? Find out what you can do.
General Wikidot.com documentation and help section.
Wikidot.com Terms of Service - what you can, what you should not etc.
Wikidot.com Privacy Policy.

AltStyle によって変換されたページ (->オリジナル) /