Museum logo

ROM-program as "Operating System" for the "SC//MP" Microcomputer

Read the actions from the service-panel


Object-code Mnemonic Description
.TITLE PANEL
08 NOPNo operation
C401 LDI 1ACCumulator-register=1 (Address switches)
37 XPAH 3Put this (1) into Pointerregister 3 High
C403 LDI 3ACCumulator=3
31 XPAL 1Put this (3) into Pointerregister 1 Low
C403 LDI 3ACCumulator=3
01 XAEExchange (3 words to fetch) with Extension Register
06TEST: CSAACCumulator=switch LOAD DATA (SR)
D420 ANI X'20AND this with 20HEX
98FB JZ TESTLoop TEST, if switch is not served (value=0)
06WAIT: CSAACCumulator=switch LOAD DATA (SR)
D420 ANI X'20AND this with 20HEX
9CFB JNZ WAITLoop until switch is released (value#0)
31 XPAL 1ACCumulator=0
982B JZ LDDATAFetch 8-bits data (word) from switches
31 XPAL 1Exchange Pointer-Register 1 Low
C403 LDI 3
60 XREOR with ACCumulator=3
980A JZ STHIStore first word
C402 LDI 2
60 XREOR with ACCumulator=2
980D JZ STLOStore second word
C401 LDI 1
60 XREOR with ACCumulator=1
9813 JZ CNT
C300STHI: LD (3)Read Servicepanel (switches)
36 XPAH 2 for RAM address to pointer 2 High
C402 LDI 2Initialize second word to fetch
01 XAE
90DB JMP TEST
C300STLO: LD (3)Read Servicepanel (switches)
32 XPAL 2for address within RAM to pointer Low
C300 LD (3)
35 XPAH 1and to pointer 1 High
C401 LDI 1
01 XAE
90D0 JMP TESTFetch third word (8-bits)
C400CNT: LDI 0Initialize fetching of user-program
31 XPAL 1
C300 LD (3)Fetch number of words user-program
01 XAE
90C8 JMP TEST
31LDDATA: XPAL 1
C300 LD(3) Fetch data from switches
CE01 ST @ 1 (2)Store data into RAM (pointed by 2)
C4FF LDI -1ACCumulator= -1
02 CCLCY/L flag is cleared in Status Register
70 ADEACC=ACC+E+CY/L (algebraically)
9803 JZ EXCAll data for user-program fetched, execute it
01 XAE
90BA JMP TEST
35EXC: XPAH 1Restore start-address of user-program
32 XPAL 2within RAM into pointer 2 Low
9200 JMP (2)Start program
.END
ACC=Accumulator, E=Extension Register

CY/L flag = Carry/Link flag in Status Register


Nog een afbeelding van de SC//MP Microcomputer
Microcomputer with keyboard
(full size 149KB)


MuseumWaalsdorp@tno.nl

SC//MP Homepage