RAND Command...
Posted: Sat Dec 05, 2020 3:20 am
"Your Computer" March 83
Discussion forums for users of the Sinclair 8-bit range of computers - ZX80, ZX81, ZX Spectrum, Z88, clones...
https://sinclairzxworld.com/
Code: Select all
1 REM xxxxxxx
2 FOR A=0 TO 5
3 POKE 16514+A,PEEK (3379+A)
4 NEXT A
5 POKE 16514,33
6 POKE 16515,61
7 POKE 16520,201
8 RAND 12345
9 POKE 16445,PEEK 16434
10 POKE 16446,PEEK 16435
11 PRINT USR 16514
Code: Select all
;------- TASM ASM mnemonics. -------
; Compile this file using:
; Set TASMOPTS = -b
; tasm -80 ThisCode.tas MyBinary.BIN
;-----------------------------------
; Zx81 Program name: VB81 XuR [RAND.bas] :
; REM line name: 1 REM: 7 Bytes@4082-4088
#define ORG .org ; TASM cross-assembler definitions
#define equ .equ
;-----------------------------------
;------------------------------------
;-Basic sub-routine entry. -
;+----------------------------------+
; Lb4082 ; <- USR Basic Enty.
;+----------------------------------+
ORG $4082 ; [@16514/@h4082]
Lb4082: ; <- USR Basic Enty.
LD HL,$403D
LD C,(HL)
INC HL
LD B,(HL)
RET ; ==========================
.end