Код:
;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 3.1.0 #7066 (Nov 22 2011) (MINGW32)
; This file was generated Fri Sep 14 18:46:58 2012
;--------------------------------------------------------
.module hello
.optsdcc -mz80
;--------------------------------------------------------
; Public variables in this module
;--------------------------------------------------------
.globl _cls
;--------------------------------------------------------
; special function registers
;--------------------------------------------------------
;--------------------------------------------------------
; ram data
;--------------------------------------------------------
.area _DATA
;--------------------------------------------------------
; overlayable items in ram
;--------------------------------------------------------
.area _OVERLAY
;--------------------------------------------------------
; external initialized ram data
;--------------------------------------------------------
;--------------------------------------------------------
; global & static initialisations
;--------------------------------------------------------
.area _HOME
.area _GSINIT
.area _GSFINAL
.area _GSINIT
;--------------------------------------------------------
; Home
;--------------------------------------------------------
.area _HOME
.area _HOME
;--------------------------------------------------------
; code
;--------------------------------------------------------
.area _CODE
;hello.c:4: void cls(){
; ---------------------------------
; Function cls
; ---------------------------------
_cls_start::
_cls:
;hello.c:7: for(i=0; i<SCREENL; i++){
ld de,#0x4000
ld bc,#0x1B00
00103$:
;hello.c:8: *(begin_scr++) = 2;
ld a,#0x02
ld (de),a
inc de
dec bc
;hello.c:7: for(i=0; i<SCREENL; i++){
ld a,b
or a,c
jr NZ,00103$
ret
_cls_end::
.area _CODE
.area _CABS