Search the web
Sign In
New User? Sign Up
68HC12
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 16491 - 16521 of 16521   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
16491
si el dato a evaluar esta en el doble acumlador D y el coneo de unos en Ix ldx #00 ldy #08 ciclo lsrd bcc cero inx cero dey bne ciclo 2009/10/20...
Angel Castillo
eltachonder
Offline Send Email
Oct 21, 2009
12:34 am
16492
Thanks, but I'm just learning assembly so I have to do it in assembly, any ideas?...
AlD
a92651delgado
Offline Send Email
Oct 21, 2009
12:45 am
16493
Try this: 1. Set count to 0 2, Shift value right 3. if carry flag set increment count 4. if value is non-zero, go back to step 2 Tom Almy Tualatin, Oregon USA ...
Tom Almy
tom_almy2000
Offline Send Email
Oct 21, 2009
1:19 am
16494
Great, just what I was looking for, makes sense....
AlD
a92651delgado
Offline Send Email
Oct 21, 2009
1:39 am
16495
That's what I said. BTW, don't let on that this is for a course or people will get really rude, tell you to read the book, and complain that they aren't...
Andrei Chichak
andreichichak
Offline Send Email
Oct 21, 2009
2:46 am
16496
No, there is a fundamental difference -- your algorithm (and Angel Castillo's) iterate 16 times, while mine only iterates while the value is non-zero. I'm also...
Tom Almy
tom_almy2000
Offline Send Email
Oct 21, 2009
4:09 am
16497
Ah, clever, I like the != 0 trick. You must be from Oregon. Did you notice the bug in the Spanish code? A ... Andrei Chichak Systems Developer CBF Systems Inc....
Andrei Chichak
andreichichak
Offline Send Email
Oct 21, 2009
4:20 am
16498
I am trying to understand how assembly is translated into machine code. I understand how to get the machine coding formats but I'm not sure how to calculate...
AlD
a92651delgado
Offline Send Email
Oct 21, 2009
8:07 am
16499
rr=F3 in dbne has most significant bit set, which means rr displacement is negative, F3 = -0D. 13 bytes from Again label to location after dbne (swi ...
Edward Karpicz
keffffek
Offline Send Email
Oct 21, 2009
8:49 am
16500
The inc instruction is 3 bytes. Yes, rr = F3 for the dbne instruction is correct. A formula which might help: PCnew = PCbranch + len(branch) + rr Or learn to...
Redd, Emmett R
emmettredd
Offline Send Email
Oct 21, 2009
9:10 am
16501
http://graphics.stanford.edu/~seander/bithacks.html <http://graphics.stanford.edu/%7Eseander/bithacks.html> -- Dr. Nicholas Merriam...
Nicholas Merriam
rapitanm
Offline Send Email
Oct 21, 2009
11:48 am
16503
Thanks, do I include the byte(s) for the instruction after the dbne, in this case for the swi instruction or stop with the 3 bytes of the dbne?...
AlD
a92651delgado
Offline Send Email
Oct 21, 2009
5:44 pm
16504
Hi, I can usually muddle through on debugging issues but I can't figure this one out and would appreciate it if anyone has seen something similar and can offer...
Robert
robt.milne
Offline Send Email
Oct 21, 2009
7:57 pm
16505
No, rr is relative to the address of instruction (or address of the first byte of instruction) that follows immediately after dbne. If we add label ... Next ...
Edward Karpicz
keffffek
Offline Send Email
Oct 23, 2009
1:37 pm
16506
Hello all, I am hoping someone has some incite as to what I am doing wrong here, I figure it is a small problem but I am out of ideas. This is just a test to...
zach.r.long@...
Send Email
Oct 26, 2009
8:26 pm
16507
Probably malloc didn't succeed char* outData =(char*) malloc (sizeof (char*)* 5); // make room for 5 char BTW comment is wrong, should be make room for 5...
Edward Karpicz
keffffek
Offline Send Email
Oct 27, 2009
4:52 am
16508
... Both points are good. Furthermore, for this series of processors or smaller and generally in embedded systems, avoid malloc and free. These smaller...
Bill Auerbach
Bill_CT
Offline Send Email
Oct 27, 2009
5:02 am
16509
I agree that malloc failed and it is passing back 0 to indicate that it failed, and you are using that as an address of your string. Please have some empathy...
Andrei Chichak
andreichichak
Offline Send Email
Oct 27, 2009
6:26 am
16510
Thanks everyone, your comments on not using malloc make sense for this system, however I am still left with the issue of incorrect output, and the thought of...
zach.r.long@...
Send Email
Oct 28, 2009
1:39 am
16511
Zach, The code for the serial port looks OK, although for production code it would benefit from a code review. SCI_OutStatus(1); // Is it clear to send (buffer...
Bill_CT
Offline Send Email
Oct 28, 2009
2:40 am
16512
Okay, let's take a look at the output and the evidence and make some wild ass guesses. You can assume that SCI_OutString is okay since 1) the "Hello World" ...
Andrei Chichak
andreichichak
Offline Send Email
Oct 28, 2009
6:21 am
16513
As stated by others it is folly to use malloc/free in simple embedded systems. The best solution is to implement asynchronous static ring buffers for rx/tx...
Robert
robt.milne
Offline Send Email
Oct 28, 2009
2:10 pm
16514
... There is no harm to use pointers and arrays and no damage results from doing so. They are equivalent - the only time a problem will occur is when a...
Bill Auerbach
Bill_CT
Offline Send Email
Oct 30, 2009
1:54 am
16515
... [Non-text portions of this message have been removed]...
Andrei Chichak
andreichichak
Offline Send Email
Oct 30, 2009
2:23 am
16516
... You say "probably cause all kinds of damage". Before anyone here thinks that's a really bad thing and it means they are doing something wrong, perhaps you...
Bill_CT
Offline Send Email
Oct 31, 2009
2:54 pm
16517
... This struck me as particularly strange since I've been mixing pointers and arrays since 1980 (when I first used C) and have never caused any kind of...
Tom Almy
tom_almy2000
Offline Send Email
Oct 31, 2009
3:57 pm
16518
Hmm, for some reason I'm not getting about half of the posts here in my inbox, including this one I discovered by going to the yahoo site. ... His program: ldx...
tom_almy2000
Offline Send Email
Oct 31, 2009
8:56 pm
16519
... Technically "Hello World" mixes an array used with printf which takes a pointer. ... Agree. ... Yes. I might not be wrong to say it's always more...
Bill Auerbach
Bill_CT
Offline Send Email
Nov 1, 2009
4:52 pm
16520
I'm using and HCS12 with icc12 compiler. I'm using SCI1 to communicate to a touch screen LCD. This program loads the LCD GUI. When I try loading the program...
jssimbe
Online Now Send Email
Nov 6, 2009
1:31 am
16521
Hi, Below, the vector interrupt table I use for DP256... Note the address I put it is 0xff80, not 0xef80... I use ICC12 too, and it run OK for interrupt. When...
jpdi
dieseinfo
Offline Send Email
Nov 6, 2009
9:41 am
Messages 16491 - 16521 of 16521   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help