Random block read (Need help!)

By gdx

Prophet (3489)

gdx's picture

28-05-2020, 09:15


This week I tried to made a command to compare 2 binary files for MSX-DOS1. I thought I would do it quickly but I don't understand why the second file doesn't load. The program detects an error (line below).

jp nz,File2End

Where am I wrong?

You can download it here. This is a short program in assembler. Except the file 2 which does not load everything else seems correct.

Login or register to post comments

By Guillian

Prophet (3302)

Guillian's picture

28-05-2020, 09:44

Try to reserve 37 bytes for the FCB2.
You are using 1 byte record size, so "Random record number" will use 4 bytes

By gdx

Prophet (3489)

gdx's picture

28-05-2020, 10:05

Thank you very much Guillian!
It works like a charm.