Sie sind hier Interner Speicher

# Interne Speicherbelegung (Version 1.1ff)

Adresse in HEX MCS BASIC-52 Verwendung
00H - 07H „WORKING REGISTER BANK“
08H BASIC TEXT POINTER – LOW BYTE
09H ARGUMENT STACK POINTER
0AH BASIC TEXT POINTER – HIGH BYTE
0BH - 0FH TEMPORARY BASIC STORAGE (Available to user in BASIC CALLS to ASM routines)
10H READ TEXT POINTER – LOW BYTE
11H CONTROL STACK POINTER
12H READ TEXT POINTER – HIGH BYTE
13H START ADRESS OF BASIC PROGRAMM – HIGH BYTE
14H START ADRESS OF BASIC PROGRAMM – LOW BYTE
15H NULL COUNT
16H PRINT HEAD POSTION FOR OUTPUT
17H FLOATING POINT OUTPUT FORMAT TYPE
18H - 21H NOT USED – RESERVED FOR USER
22H BITS USED SPECIFICALLY AS FOLLOWS
BIT 22.0H SET WHEN „ONTIME“ STATEMENT IS EXECUTED
BIT 22.1H SET WHEN BASIC INTERRUPT IS IN PROGRESS
BIT 22.2H SET WHEN „ONEX1“ STATEMENT IS EXECUTED
BIT 22.3H SET WHEN „ONERR“ STATEMENT IS EXECUTED
BIT 22.4H SET WHEN „ONTIME“ INTERRUPT IS IN PROGRESS
BIT 22.5H SET WHEN A LINE IS EDITED
BIT 22.6H SET WHEN EXTERNAL INTERRUPT IS PENDING
BIT 22.7H WHEN SET, CONT COMMAND WILL WORK
23H BITS USED SPECIFICALLY AS FOLLOWS
BIT 23.0H USED AS FLAG FOR „GET“ OPERATOR
BIT 23.1H SET WHEN PRINT@ OR LIST@ IS EVOKED
BIT 23.2H RESERVED, TRAPS TIMER 1 INTERRUPT
BIT 23.3H CONSOLE OUTPUT CONTROL, 1 = LINE PRINTER
BIT 23.4H CONSOLE OUTPUT CONTROL, 1 = USER DEFINED
BIT 23.5H BASIC ARRAY INITIALIZATION BIT
BIT 23.6H CONTROL INPUT CONTROL, 1 = USER DEFINED
BIT 23.7H RESERVED, USED TO TRAP SERIAL PORT INTERRUPT
24H BITS USED SPECIFICALLY AS FOLLOWS
BIT 24.0H STOP STATEMENT OR CONTROL-C ENCOUNTERED
BIT 24.1H USER IDLE BREAK BIT
BIT 24.2H SET DURING AN INPUT INSTRUCTION
BIT 24.3H RESERVED
BIT 24.4H SET WHEN ARGUMENT STACK HAS A VALUE
BIT 24.5H RETI INSTRUCTION EXECUTED
BIT 24.6H RESERVED; TRAPS EXTERNAL INTERRUPT 0
BIT 24.7H SET BY USER TO SIGNIFY THAT A VALID LIST@ OR PRINT@ DRIVER IST PRESENT
25H BITS USED SPECIFICALLY AS FOLLOWS
BIT 25.0H RESERVED, SOFTWARE TRAP TEST
BIT 25.1H FIND TJE END OF PROGRAM, IF SET
BIT 25.2H SET DURING A DIM STATEMENT
BIT 25.3H INTERRUPT SATUS SAVE BIT
BIT 25.4H RESERVED, INPUT TRAP
BIT 25.5H SET TO SIGNIFY EXPANSION IS PRESENT
BIT 25.6H SET WHEN CLOCK1 EXECUTED; ELSE CLEARED
BIT 25.7H SET WHEN BASIC IS IN THE COMMAND MODE
26H BITS USED SPECIFICALLY AS FOLLOWS
BIT 26.0H SET TO DISABLE CONTROL-C
BIT 26.1H SET TO ENABLE „FAKE“ DMA
BIT 26.2H RESERVED, OUTPUT TRAP
BIT 26.3H SET TO EVOKE „INTELLIGENT“ PROM PROGRAMMING
BIT 26.4H SET TO PRINT TEXT STRING FROM ROM
BIT 26.5H SET WHEN CONTROL-S ENCOUNTERED
BIT 26.6H SET TO SUPPRESS ZEROS IN HEX MODE PRINT
BIT 26.7H SET TO EVOKE HEX MODE PRINT
27H „BIT“ ADDRESSABLE BYTE COUNTER
28H - 3DH BIT AND BYTE FLOATING POINT WORKING SPACE
3EH INTERNAL STACK POINTER HOLDING REGISTER
3FH LENGTH OF USER DEFINED STRING – $
40H TIMER 1 RELOAD LOCATION – HIGH BYTE
41H TIMER 1 RELOAD LOCATION – LOW BYTE
42H BASIC TEXT POINTER SAVE LOCATION – HIGH BYTE
43H BASIC TEXT POINTER SAVE LOCATION – LOW BYTE
44H RESERVED
45H TRANCENDENTAL FUNCTION TEMP STORAGE
46H TRANCENDENTAL FUNCTION TEMP STORAGE
47H MILLI-SECOND COUNTER FOR REAL TIME CLOCK
48H SECOND COUNTER FOR REAL TIME CLOCK – HIGH BYTE
49H SECOND COUNTER FOR REAL TIME CLOCK – LOW BYTE
4AH TIMER 0 RELOAD FOR REAL TIME CLOCK
4BH USER ARGUMENT FOR ONTIME – HIGH BYTE
4CH USER ARGUMENT FOR ONTIME – LOW BYTE
4DH - 0FFH 8052AH STACK SPACE AND USER WORKING SPACE