Add small performance test to compute Z80 actual speed.

This commit is contained in:
giomba 2023-10-22 11:41:16 +02:00
parent a80c52bedd
commit 1156e03305

17
src/performance_test.asm Normal file
View File

@ -0,0 +1,17 @@
SECTION code
PUBLIC _performance_test
_performance_test:
in a,($A0)
ld de,$0100
loop:
ld a,($d000) ; 13
dec de ; 6
ld a,d ; 4
or e ; 4
jp nz,loop ; 10
jp _performance_test