Machine Language Control Statements - Sharp MZ-80B Basic Manual

Personal computer double precision disc
Hide thumbs Also See for MZ-80B:
Table of Contents

Advertisement

54
POSH
POSY

3 . 1 . 1 5 Machine language control statements

LIMIT
100 LIMIT 49 1 5 1
1 00 LIMIT A
1 00 LIMIT $BFFF
300 LIMIT MAX
200 LIMIT $BFFF
2 1 0 LOAD FD2 "S-R l "
1 20 POKE 49450, 1 75
POKE
1 30 POKE AD, DA
1 50 A=PEEK ( 49450)
PEEK
1 60 B=PEEK (C)
500 USR (49 1 52)
USR
550 USR (AD)
570 USR ($COOO)
System variable indicating the X-coordinate (horizontal location)
of the position pointer.
System variable indicating the Y-coordinate (vertical location) of
the position pointer.
Limits the area in which BASIC programs can be loaded to the area
up to address 49 1 5 1 ($BFFF in hexadecimal).
Limits the area in which BASIC programs can be loaded to the area
up to the address indicated by variable A.
Limits the area in which BASIC programs can be loaded to the area
up to $BFFF (hexadecimal). Hexadecimal numbers are indicated
by a dollar sign as shown at left.
Set the maximum address of the area in which BASIC programs
can be loaded to the maximum address of the memory installed.
Loads machine language program (object program) "S- R 1 " in the
machine language link area from the diskette in drive 2 when the
loading address of the program is $COOO or higher.
Stores 1 75 in address 49450.
Stores data (between 0 and 255) specified by variable DA into the
address indicated by variable AD.
Substitutes data stored in address 49450 into v { riable A.
Substitutes the contents of the address indicated by variable C into
variable B.
Transfers program control to address 49 1 5 2 . This function is the
same as that performed by the CALL instruction, which calls a
machine language program. When a RET command is encountered
in the machine language program , program control is returned to
the BASIC program.
Calls the program starting at the address specified by variable AD.
Calls the program starting at address $COOO .

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents