Post Reply 
How to create custom 41C modules from keystroke programs?
10-11-2020, 08:56 AM
Post: #33
RE: How to create custom 41C modules from keystroke programs?
The .ram files from DM41X are simply in the binary format that is also inside the .mod files, but in this case the ram/rom contents only. I have a beta of M2kM working that simply splits the .ram file into multiple .rom files, and gives a summary of the contents, see this description (taken from the comments in my source). Format is the same as the .bin format used in Emu41

// BIN - This format is used by Emu41 (J-F Garnier) and HP41EPC (HrastProgrammer).
// Note: HP41EPC uses BIN format but names them .ROM files.
// All bits are packed into 5120 bytes, but several consecutive pages may
// occupy the same file, so the file size could be a multiple of 5120.
// 4 machine words are packed into 5 bytes:
// Byte0 = Word0[7-0]
// Byte1 = Word1[5-0] << 2 | Word0[9-8]
// Byte2 = Word2[3-0] << 4 | Word1[9-6]
// Byte3 = Word3[1-0] << 6 | Word2[9-4]
// Byte4 = Word3[9-2]
// for (i=0;i<5120;i+=5)
// {
// *ptr++=((BIN[i+1]&0x03)<<8) | BIN[i];
// *ptr++=((BIN[i+2]&0x0F)<<6) | ((BIN[i+1]&0xFC)>>2);
// *ptr++=((BIN[i+3]&0x3F)<<4) | ((BIN[i+2]&0xF0)>>4);
// *ptr++=(BIN[i+4]<<2) | ((BIN[i+3]&0xC0)>>6);
// }

Will probably publish the beta later today or tomorrow. Sorry, Windows only and requires the FTDI drivers to be installed. No need to have an MLDL2000 connected though.

Regards, Meindert
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: How to create custom 41C modules from keystroke programs? - MeindertKuipers - 10-11-2020 08:56 AM



User(s) browsing this thread: 1 Guest(s)