Measures Concepts
GitHub icon

z80

z80 - Assembly language

< >

z80 is an assembly language created in 1976.

#1485on PLDB 48Years Old


Example from the web:
; memcpy -- ; Copy a block of memory from one location to another. ; ; Entry registers ; BC - Number of bytes to copy ; DE - Address of source data block ; HL - Address of target data block ; ; Return registers ; BC - Zero org 1000h ;Origin at 1000h memcpy public loop ld a,b ;Test BC, or c ;If BC = 0, ret z ;Return ld a,(de) ;Load A from (DE) ld (hl),a ;Store A into (HL) inc de ;Increment DE inc hl ;Increment HL dec bc ;Decrement BC jp loop ;Repeat the loop end

Language features

Feature Supported Token Example
Comments ✓
; A comment
Line Comments ✓ ;
; A comment
Semantic Indentation X

View source

- Build the next great programming language · Search · Add Language · Features · Creators · Resources · About · Blog · Acknowledgements · Queries · Stats · Sponsor · Day 605 · feedback@pldb.io · Logout