Search results
Calling BIOS routines from C without any overhead
Score: 185.51 %,
Type: Forum topic , Comments: 10 comments
nuc1e0n wrote:
z88dk has
nuc1e0n wrote:
z88dk has konamiman's asmlib integrated ... or msxdos2:
int isMSX2(void) {
if(bdos(CPM_VERS, 0) == 0x22) {
__asm
ld a, 1
ld c, 0x6f
call 0x0005
or a
jr nz, NOTMSX2
ld a, b
cp 2
jr c, NOTMSX2
ld hl, 1
ret ...
Fast copy using unrolled ldi loop
Score: 185.2 %,
Type: Forum topic , Comments: 20 comments
ld iy, #2
add iy, sp
ld c, 0(iy)
ld b, 1(iy)
// ...
and #0x0F // 8 cc
jp z, mem_fastcopy_loop // 11 cc - total 24 cc ... 5 cc
ld b, #0 // 8 cc
ld c, a // 5 ...
