SPINAsm and Empty programs

Software questions and issues with the FV-1

Moderator: frank

Post Reply
Siskin
Posts: 1
Joined: Sat Aug 13, 2022 2:19 am

SPINAsm and Empty programs

Post by Siskin »

First off, let me just say, I'm new to the FV-1 and trying to read up on it as fast as possible but haven't read EVERYTHING, so I apologise if my questions have already been answered.
Please go easy on me and just point me in the right direction. I'm keen to learn.

On page 19 of the SPINAsm User Manual, it states
"If there is no SPN1001 plugged in any program slots with no file name entry will be built with NOPs."
When I build a project with empty slots, they are filled with 0x11000000.
I thought a NOP was 0x00000011 since that's what gets appended at the end of non-empty programs.

For example, using the example project and looking at Example Project.h
Example Project_05[] = {
0x80,0x20,0x00,0x11,
0x40,0x00,0x00,0x12,
0x40,0x00,0x02,0x04,
...
0x00,0x00,0x00,0x11,
0x00,0x00,0x00,0x11,
0x00,0x00,0x00,0x11,
};
Example Project_06[] = {
0x11,0x00,0x00,0x00,
0x11,0x00,0x00,0x00,
0x11,0x00,0x00,0x00,
...

So what's happening here?
Is a NOP 0x00000011 or 0x11000000?
Is 0x11000000 a SKP instruction?
igorp wrote: Tue Jan 15, 2019 11:17 am 2. fully empty patch contain {0x11 , 0 ,0 , 0} x128 times .
3. Not programmed area on the flash chip usually contains all 0xFF
Soundwise, what does the FV-1 do if an EEPROM program slot contains the following?
1. Repeated 0x00,0x00,0x00,0x11 (NOPs?)
2. Repeated 0x11,0x00,0x00,0x00 (SPINAsm output for empty slot(SKP?))
3. Repeated 0xFF,0xFF,0xFF,0xFF (Erased EEPROM)

I haven't got my hardware together yet to try these things out, sorry.
frank
Posts: 1244
Joined: Wed Oct 19, 2005 12:26 pm
Contact:

Re: SPINAsm and Empty programs

Post by frank »

There is no official NOP so any instruction that does not change the values in ACC or other registers can be used as a NOP.

When comparing the 0x00000011 to 0x11000000 it could be either a typo or one is in little endian and the other big endian. But ultimately as long as the instruction does not change anything it is a NOP.
Frank Thomson
Experimental Noize
Post Reply