Warning: session_start(): open(/tmp/sess_25c07790dfb18e39ec2a241c27780175, O_RDWR) failed: No space left on device (28) in /var/www/html/inc/init.php on line 265

Warning: session_start(): Failed to read session data: files (path: ) in /var/www/html/inc/init.php on line 265

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/inc/init.php:265) in /var/www/html/inc/auth.php on line 432

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/inc/init.php:265) in /var/www/html/inc/actions.php on line 38
cpm_assembler_sample [Ben's notes]

Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


cpm_assembler_sample

CP/M Assembler 2.0 sample

Sample from: CP/M MAC MACRO ASSEMBLER - LANGUAGE MANUAL AND APPLICATIONS GUIDE

	org	0100h		;transient program area
bdos	equ	0005h		;bdos entry point
wchar	equ	2		;write character function

;enter with ccp's return address in the stack
;write a single character (?) and return
	mvi	C,wchar		;write character function
	mvi	e,'?'		;character to write
	call	bdos		;write the character
	ret			;return to the ccp
	end	100h		;start address is 100h
cpm_assembler_sample.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1