62 CHAPTER 5. TABLES
init equ $ffa9
input equ $ffac
output equ $ffaf
outlhlf equ $ffb2
outrhlf equ $ffb5
outa equ $ffb8
out1byt equ $ffbb
out1bsp equ $ffbe
out2bsp equ $ffc1
outcrlf equ $ffc4
outstrg equ $ffc7
outstrgo equ $ffca
inchar equ $ffcd
vecinit equ $ffd0
org $3000
; setup some strings ...
preamble
fcc /=====================================/
fcb 10
fcc /Lab on using Tables/
fcb 10, 10 *use 10 to start a new line
fcc /Name: _____________________/
fcb 10
fcc /This program is an infinite loop! /
fcb 10
fcc /Hit the reset button to quit/
fcb 10
fcc /=====================================/
fcb 10,10,10, 4
yesstr fcc / is a vowel/
fcb 10, 4
nostr fcc / is not a vowel/
fcb 10, 4
; setup the table of vowels
vowels fcc /aeiouAEIOU/
nvowels equ 10
Komentáře k této Příručce