Two questions about s3c8 asm

Discussion forum for JP1 software tools currently in use, or being developed, such as IR, KM, RemoteMaster, and other misc apps/tools.

Moderator: Moderators

Post Reply
ElizabethD
Advanced Member
Posts: 2348
Joined: Mon Feb 09, 2004 12:07 pm

Two questions about s3c8 asm

Post by ElizabethD »

1. Re: Don Grovestine's code for MultiToadTog protocol in this thread:
https://www.hifi-remote.com/forums/viewtopic.php?t=6869

When I assemble this line (uses indirect load) TT040: LD W3, @W0 ;Selected status register
I get C7 30. I also got 1/2 sentence of some error message and I think addresses got out of synch.

I moved the whole thing into PB3.12, and the same line resolves to C7 03. I suspect that's correct.
What should it be? I'm really clueless with those register things.Trial PB files for both protocols in diagnosis:
TimedCallback(PB).txt https://www.hifi-remote.com/forums/dload ... le_id=3556
MultiToadTog(PB).txt https://www.hifi-remote.com/forums/dload ... le_id=3557

2. One more question - in the 8910 there's a free register he's using, $B6. What would a good free register be for 6011, the subject of that thread?
Liz
Tweeking 8910, HTPro/9811, C7-7800, 6131o, 6131n, AtlasOCAP-1056B01, RCA-RCRP05B and enjoying the ride :)
johnsfine
Site Admin
Posts: 4766
Joined: Sun Aug 10, 2003 5:00 pm
Location: Bedford, MA
Contact:

Re: Two questions about s3c8 asm

Post by johnsfine »

ElizabethD wrote:1. Re: Don Grovestine's code for MultiToadTog protocol in this thread:
https://www.hifi-remote.com/forums/viewtopic.php?t=6869
I copied the text from the Sep 04, 2006 1:10 pm post in that thread.

I edited it to fix one word wrap problem in a comment (not sure whether that happened in the browser that posted it or in the forum software or in my browser, but such word wrap problems are common in passing such files through forums).

I assembled it with S3c8asm without problems.

I haven't used or touched S3C8asm in a long time. I'm using my own build of 6/24/2003. I hope that behaves the same as whichever one you're using.
ElizabethD wrote: I get C7 30. I also got 1/2 sentence of some error message
I get C7 30 and no error message.
ElizabethD wrote: I moved the whole thing into PB3.12, and the same line resolves to C7 03. I suspect that's correct.
The way I read the S3C80 documentation from Samsung, C7 30 is correct.

I don't think I have time to test that with an actual program running on an actual remote.

Do you have the S3C80 documentation? Did you look up the LD instruction? What do you think it says?
ElizabethD
Advanced Member
Posts: 2348
Joined: Mon Feb 09, 2004 12:07 pm

Post by ElizabethD »

I'm well out of my league here. I looked through the instruction set, and there are no clues that I can see, and no examples to get feedback from, really useful. John, I'm learning, but I wouldn't even know how to find this sort of info. Just surviving the basics.

The reason I suspect PB is right because the list of syntax things is consistent
81B9,C7 21,,LD,"W1,@W2", <- equivalent to LD w3,@w0. I just see 21 12 position switch similar to 03 and 30.
81BB,D7 12,,LD,"@W1,W2",
But then in the reassembly at TT060 is D7 instruction. If D7 is correct, then C7 might not be.

What do I know. I hope someone does. If we saw Don's working IR file using this, then I'd have confirmation which way to go.

Well, one byte here, one byte there, who cares :) :twisted: I'm just gonna make two device upgrades for those two ToadTog versions, subject to change of that one thingie.

New question - how wise to use MISC/1800 for this alternative toadTog (version with RB4), when we all use it for the standard ToadTog. I can number it anything I want, right? Like 1901, 1902.
Liz
Tweeking 8910, HTPro/9811, C7-7800, 6131o, 6131n, AtlasOCAP-1056B01, RCA-RCRP05B and enjoying the ride :)
johnsfine
Site Admin
Posts: 4766
Joined: Sun Aug 10, 2003 5:00 pm
Location: Bedford, MA
Contact:

Post by johnsfine »

My understanding of the documentation of LD from Samsung is:

Code: Select all

LD   dst,src
The general (source) form of the instruction, with destination always before source.

Code: Select all

  opc    dst | src
Sorry I can't duplicate the boxes from the pdf. Hope you can see the item I'm quoting.

It means the opcode is one byte and the destination and source are together in the next byte with destination in the first (top) half.

Code: Select all

C7  r  Ir
D7  Ir r
That says when the source is Indirect (has an @) the opcode is C7, and when the destination is Indirect the opcode is D7.

so

Code: Select all

LD  W3,@W1   is   C7 31
LD  @W3,W1   is   D7 31
ElizabethD
Advanced Member
Posts: 2348
Joined: Mon Feb 09, 2004 12:07 pm

Post by ElizabethD »

Yikes! Your dest,src is it. I just didn't see it when packed all in one. So that's how you read it :eek: Thanks, John.

Oh, yes, the s3c8asm did mention something about R03, and it may well have been caused by that wrapped line.
Liz
Tweeking 8910, HTPro/9811, C7-7800, 6131o, 6131n, AtlasOCAP-1056B01, RCA-RCRP05B and enjoying the ride :)
ElizabethD
Advanced Member
Posts: 2348
Joined: Mon Feb 09, 2004 12:07 pm

Re: Two questions about s3c8 asm

Post by ElizabethD »

johnsfine wrote:The way I read the S3C80 documentation from Samsung, C7 30 is correct.

I don't think I have time to test that with an actual program running on an actual remote.
I just ran a quick test with C7 30 on my 8910 on just the replacement section (B4 variable) - it didn't crash the remote, so I guess that Samsung and your reading of it is correct and PB 3.12 may need a correction. Unless my test is insufficient.
Liz
Tweeking 8910, HTPro/9811, C7-7800, 6131o, 6131n, AtlasOCAP-1056B01, RCA-RCRP05B and enjoying the ride :)
Post Reply