Offline
Mexico

SID hex editor for advanced users,

Does anyone knows how to use this function?

Offline
Toronto, Ontario, Canada

Yes, it's pretty familiar for those who have done SID instrument editing. Do you have any experience with SID and it's registers?

If not:

The SID chip has 29 registers. This may seem confusing, but here is a breakdown of the registers:
http://www.oxyron.de/html/registers_sid.html

In Cynthcart you first hit RUNSTOP+F1 to enter the editmode (there's a different key combo if you're using the overlay). In hex edit mode you first enter two hex digits for the register address you want to go to (00-1C) and then enter the two hex digits to place into that register.

Looking at that reference you simply set a 1 for an item you want 'on' or 'active' and 0 for one you want off. Let's look at register $D404, the one that sets the timbre of the first channel, and let's assume we want to create a noise/pule combination and we want to set the gate to 1, with no other options. that means that bits 7 and 6 are high, and bit 0 is high and nothing else. In binary that comes to:

11000001

We need this value in hex, though. Luckily, hex and binary are extremely easy to convert between (even in your head). If you've never worked with hex, here's an easy way of converting them:

-Break the binary number into chunks of 4 digits (add leading zeros if required). Four binary digits happen to represent 16 possible values (0-15) and therefor correspond directly to the following chart:

0 = 0000
1 = 0001
2 = 0010
3 = 0011
4 = 0100
5 = 0101
6 = 0110
7 = 0111
8 = 1000
9 = 1001
A = 1010
B = 1011
C = 1100
D = 1101
E = 1110
F = 1111

These 15 pairings are easy to figure out and you'll quickly find you can do them automatically.

Back to our example we have:

1100 0001

1100 is C, 0001 is 1. So put em together! It's that easy!

Which is C1 in hexadecimal.

Last edited by jefftheworld (Aug 3, 2013 1:05 am)

Offline
Mexico

Thanks! it is possible to save the new settings?

jefftheworld wrote:

Yes, it's pretty familiar for those who have done SID instrument editing. Do you have any experience with SID and it's registers?

If not:

The SID chip has 29 registers. This may seem confusing, but here is a breakdown of the registers:
http://www.oxyron.de/html/registers_sid.html

In Cynthcart you first hit RUNSTOP+F1 to enter the editmode (there's a different key combo if you're using the overlay). In hex edit mode you first enter two hex digits for the register address you want to go to (00-1C) and then enter the two hex digits to place into that register.

Looking at that reference you simply set a 1 for an item you want 'on' or 'active' and 0 for one you want off. Let's look at register $D404, the one that sets the timbre of the first channel, and let's assume we want to create a noise/pule combination and we want to set the gate to 1, with no other options. that means that bits 7 and 6 are high, and bit 0 is high and nothing else. In binary that comes to:

11000001

We need this value in hex, though. Luckily, hex and binary are extremely easy to convert between (even in your head). If you've never worked with hex, here's an easy way of converting them:

-Break the binary number into chunks of 4 digits (add leading zeros if required). Four binary digits happen to represent 16 possible values (0-15) and therefor correspond directly to the following chart:

0 = 0000
1 = 0001
2 = 0010
3 = 0011
4 = 0100
5 = 0101
6 = 0110
7 = 0111
8 = 1000
9 = 1001
A = 1010
B = 1011
C = 1100
D = 1101
E = 1110
F = 1111

These 15 pairings are easy to figure out and you'll quickly find you can do them automatically.

Back to our example we have:

1100 0001

1100 is C, 0001 is 1. So put em together! It's that easy!

Which is C1 in hexadecimal.

Offline
Toronto, Ontario, Canada

F3 Save Custom Patch

Offline
Mexico

thanks!

jefftheworld wrote:

F3 Save Custom Patch