It is currently Mon Oct 20, 2014 4:49 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Electron Doom Project.
PostPosted: Wed Mar 03, 2010 11:35 pm 
Offline
 Profile

Joined: Fri Feb 26, 2010 7:07 pm
Posts: 6
Hi, don't get your hopes up yet as I've only just started the code for this and there's
not much to see. I've started this thread as I think I'll have quite a few questions as I work through this and hopefully have something to show by the end of it.

My fist question is about this:

http://codebase64.net/doku.php?id=base: ... iplication

I'm using it for signed multiply of 16bit * 16bit = 32 bit

It seems to all work fine but in the code for generating table 1 there's this:

.db $c9

which I assume is EQUIB &C9 in electron assembler, am I right? and what does it do?


Top
 
PostPosted: Thu Mar 04, 2010 12:18 am 
Offline
User avatar
 Profile

Joined: Sun Jun 28, 2009 11:37 pm
Posts: 55
Hi. This sounds like an ambitious project! Will be interesting to see how it progresses.

alexi wrote:
.db $c9
which I assume is EQUIB &C9 in electron assembler, am I right? and what does it do?

Yep, that should be an EQUB instruction on the Electron. It's basically an optimisation to reduce the byte count of the code. C9 is the opcode for an immediate CMP instruction. The first time through the loop, the TYA following it is consumed as the operand of the CMP and as a side effect, the carry is cleared. Subsequent iterations branch back to the TYA instruction with the carry already in the required state.


Top
 
PostPosted: Thu Mar 04, 2010 1:10 am 
Offline
 Profile

Joined: Fri Feb 26, 2010 7:07 pm
Posts: 6
Quote:
Hi. This sounds like an ambitious project! Will be interesting to see how it progresses.


:D Don't expect anything too great and thanks for the info.


Top
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron