* for this file see task include a file in language AArch64 assembly */ Ldr x0,qAdrszMessEndPgm // display end message Ldr x0,qAdrszClear1 // change for other clear screen
Ldr x0,qAdrszMessStartPgm // display start message asciz '\33[2J' // console clear (id language C) * for this file see task include a file in language AArch64 assembly*/ * ARM assembly AARCH64 Raspberry PI 3B */ Works with: as version Raspberry Pi 3B version Buster 64 bits
Jmp bdos Call CP/M BDOS and quit AArch64 Assembly Mvi e,FF Form feed (argument goes in E register) Mvi c,putch Print character (syscall goes in C register) Output, as CP/M was the de facto standard operating system for 8080-based systems. This program uses a CP/M system call to send a Form Feed character to the standard Sending an ASCII Form Feed control character (code 12) will clear the screen. On almost all video terminals, from the earliest ones to today's terminal emulators, Lda $ff $ff is 0 if no key has been pressed Sta ($00),y put pixel (random color) to the screen Lda #$00 store the start address of the screen ($200) First we fill this screen with random colored pixels, wait for a keypress and then 'clear' the screen (fill it with black pixels). 25.2 Library System.Console from Jens Borrisholt.