School-Assembly-Z80/Verifica/B1/es1b.lst

26 lines
913 B
Plaintext

---------------------------------------------
OSHONSOFT Z80 ASSEMBLER LISTING
Line Addr Opcode Label Instruction
---------------------------------------------
0001 0000 ; Manuel Vichi 3^AIN
0002 0000 ; Esercizio B1
0003 0000 org 0h
0004 0000 C3 00 01 jp main
0005 0003 org 100h
0006 0100 21 00 02 main: ld HL, 200h
0007 0103 CD 07 01 call rout
0008 0106 76 halt
0009 0107 end
0010 0107 E5 rout: push HL
0011 0108 C5 push bc
0012 0109 06 03 ld b, 3h
0013 010B 7E ld A, (HL)
0014 010C 86 loop: add A, (HL)
0015 010D 05 dec b
0016 010E 20 FC jr nz, loop
0017 0110 77 ld (HL), a
0018 0111 C1 pop bc
0019 0112 E1 pop hl
0020 0113 C9 ret
Number of errors = 0