; assume es:data @next_block: mov cx,100h mov di, offset buff call read_rom_part mov ax,7140h cld @loop: repne scasw jcxz @next_block cmp byte ptr es:[di],57h jnz @loop add di,1Ch mov dx,es:[di] mov cl,dl shr cl,7 or dl,80h shr dh,4 or dh,8 shl dh,1 dec dh,cl mov cl,dh movzx eax,dl ror eax,cl mov al,57h xchg al,ah push ax ;r5 mov ax,300h mov al,es:[di+2] push ax ;r4 mov dx,es:[di+0Ah] mov cl,dl shr cl,7 or dl,80h shr dh,4 or dh,8 shl dh,1 dec dh,cl mov cl,dh movzx eax,dl ror eax,cl mov al,es:[di+0Ah+2] xchg al,ah push ax ;r2 |