Forum: Assembly 8 Days Ago |
| Replies: 1 Views: 238 I am starting to write a assembly program for a mc68hc12. I will be reading a 8 bit signed number into PortA and outputting the results to 7 segment LED's, common anode. I will be using Port P to... |
Forum: Assembly Oct 21st, 2009 |
| Replies: 0 Views: 233 I am trying to understand how assembly is translated into machine language. I understand how to get the machine coding formats but I'm not sure how to calculate 'rr' in all cases. For the example... |
Forum: Assembly Oct 20th, 2009 |
| Replies: 1 Views: 398 I am trying to count the number of 1's in a sixteen bit word for MC68HC12. The only way I can think of is to use 16 BITA instructions, one for each bit location, then increment a counter. I suspect... |
Forum: Assembly Oct 17th, 2009 |
| Replies: 1 Views: 260 I am learning assembly on a MC68HC12.
Can someone explain to me why the overflow flag, V=1, using the asr instruction on following binary number:
%1111 0100
the asr shift would be;
%1111 1010... |
Forum: Assembly Dec 4th, 2008 |
| Replies: 0 Views: 347 I'm new to assembly language and have written an instruction sequence for the MC68HC12 ,to input a string of characters using the SCI channel 0. The input character string, will be no more than 20... |
Forum: Assembly Nov 19th, 2008 |
| Replies: 1 Views: 401 Is there any other information I can provide on this question. I just need the syntax and opcode to output different levels on PORTP, 0, 2 and 4. |
Forum: Assembly Nov 19th, 2008 |
| Replies: 1 Views: 401 I'm writing a program to output a stair step waveform from VoutA. How do I tell PORTP to output 2 volts?
#include "d:\miniide\hc12.inc"
org $1000
ldaa #$FF
staa DDRP ; configure... |
Forum: Assembly Nov 12th, 2008 |
| Replies: 0 Views: 389 I am new to assembly programming. I am programming for the MC68HC12. I was given a program with the opcodes XDECI, SR, Xprnt etc. I can't find any of these in my text book for the MC68. Are they for... |