Upload files to "Verifica/B1"

This commit is contained in:
Vichingo455 2025-08-10 10:45:56 +00:00
parent 9f1c3e02bc
commit 60160af29c
4 changed files with 49 additions and 0 deletions

20
Verifica/B1/es1b.asm Normal file
View File

@ -0,0 +1,20 @@
; Manuel Vichi 3^AIN
; Esercizio B1
org 0h
jp main
org 100h
main: ld HL, 200h
call rout
halt
end
rout: push HL
push bc
ld b, 3h
ld A, (HL)
loop: add A, (HL)
dec b
jr nz, loop
ld (HL), a
pop bc
pop hl
ret

4
Verifica/B1/es1b.hex Normal file
View File

@ -0,0 +1,4 @@
:10000000C30001000000000000000000000000002C
:10010000210002CD070176E5C506037E860520FCA9
:0401100077C1E1C909
:00000001FF

25
Verifica/B1/es1b.lst Normal file
View File

@ -0,0 +1,25 @@
---------------------------------------------
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

BIN
Verifica/B1/es1b.obj Normal file

Binary file not shown.