Ben Stienstra

Linux, Unix, network, radio and more...

User Tools

Site Tools


cpm_assembler_sample

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

cpm_assembler_sample [2014/11/24 21:24] (current)
admin created
Line 1: Line 1:
 +{{tag>​[altair cpm assembler]}}
 +~~TOC~~
 +=====CP/M Assembler 2.0 sample=====
 +//Sample from: CP/M MAC MACRO ASSEMBLER - LANGUAGE MANUAL AND APPLICATIONS GUIDE//
  
 +<​code>​
 + 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</​code>​
cpm_assembler_sample.txt ยท Last modified: 2014/11/24 21:24 by admin