Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
11
Task/Hello-world-Text/8080-Assembly/hello-world-text.8080
Normal file
11
Task/Hello-world-Text/8080-Assembly/hello-world-text.8080
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
; This is Hello World, written in 8080 assembly to run under CP/M
|
||||
; As you can see, it is similar to the 8086, and CP/M is very
|
||||
; similar to DOS in the way it is called.
|
||||
org 100h ; CP/M .COM entry point is 100h - like DOS
|
||||
mvi c,9 ; C holds the syscall, 9 = print string - like DOS
|
||||
lxi d,msg ; DE holds a pointer to the string
|
||||
jmp 5 ; CP/M calls are accessed through the jump at 05h
|
||||
; Normally you'd CALL it, but since you'd end the program by RETurning,
|
||||
; JMP saves a byte (if you've only got 64k of address space you want to
|
||||
; save bytes).
|
||||
msg: db 'Hello world!$'
|
||||
Loading…
Add table
Add a link
Reference in a new issue