Questions tagged [assembly]

This is a programming language that is at a low level that corresponds with the instruction set of the machine being programmed.

Filter by
Sorted by
Tagged with
16
votes
12answers
7k views

Could you program a microcontroller without a computer?

Let's say you had a rather simple and small microcontroller and had no interfacing, no computer, no debugger, compiler, or assembler. Could you write your code in assembly, convert it (manually) to ...
13
votes
9answers
28k views

Arduino with assembly?

For my venture into microprocessing, I decided to go with Atmel AVR due to the vast resources available. The Arduino seems to have a lot as well, not to mention their starter kits seem more "at ...
1
vote
3answers
12k views

How to set all flags in 8085?

My Microprocessor teacher of 8085 gave an assignment to set all flags ! I have written this little program to set all except Sign, Please help me out ...
-1
votes
1answer
2k views

Debouncing of a push button in assembly using Timer1 interrupt - PIC16F628A [closed]

I am new at assembly programming and I need to develop a debouncing code to use on a push button, for that I am required to use timer1 interrupt. The push button will be used to increment a counter ...
18
votes
8answers
6k views

Writing DSP algorithms directly in C or assembly? [closed]

I m working on a DSP project(IIR filtering) on an Analog Devices digital signal processor(BF706) with the compiler suite coming with it, CrossCore Studio. It has some examples for simple DSP stuff ...
10
votes
3answers
23k views

Difference between reading PORT and PIN

What is the difference between reading PORTA and PINA? What is the relation between a port and its pins?I'm really confused!!! sample of reading PORT:(reading pin is not useful here) Assembly f=1MHZ ...
18
votes
3answers
21k views

Removing rosin flux residue from PCB

I have a nice looking purple PCB from Laen's batch service, which I have assembled using rosin flux. I have cleaned the board as best I can with isopropyl alcohol, which gets rid of the tackiness of ...
7
votes
1answer
620 views

On Freescale iMX31, how can I translate SDRAM address to CPU address?

[This is a re-post of https://stackoverflow.com/q/5346225/69172] I'm new to iMX31 and embedded systems, please help me to understand the translation from SDRAM address to ARM CPU address, especially ...
5
votes
3answers
859 views

Dump Flash Memory through a single GPIO pin

I'm working with Infineon's XMC4500 Relax Kit and I'm trying to extract the firmware through a single GPIO pin. My very naive idea is to dump one bit at a time through the GPIO pin and somehow "sniff"...
4
votes
3answers
1k views

How does the CPU handle XCHG internally?

While designing my own 16-bit CPU I wonder how the register-register XCHG instruction is executed internally. From computer science I know the DLX which doesn't provide XCHG and therefore doesn't need ...
3
votes
2answers
487 views

Moisture Senstive Devices - Shelf Life

I have a bag of DAC7512N digital to analog converter from TI. They are still sealed in the original packing, however the caution notes denote "calculated shelf life in sealed bag: 24 months" and the ...
3
votes
1answer
2k views

PIC 16F1503 - change the frequency of internal oscillator

My configuration bits are as follows: ...
2
votes
1answer
2k views

MPLAB assembly issue code jumps

I am having some issues with what I think to be good code. This is for a uni assignment but this is not the code I'm submitting. This is a test file to understand how it all works. Some of this code ...
1
vote
1answer
2k views

Are AVR multi-cycle instructions pipelined?

Since AVR is a RISC architecture, most instructions only take a single cycle to execute. Still some need two or more cycles, e.g. adiw, which performs 16-bit ...
0
votes
1answer
105 views

What is the fastest (in clock cycles) 16-bit x 16-bit unsigned integer division algorithm that will run on an ATMEGA1284?

What is the fastest (in clock cycles) division algorithm that will run on an ATMEGA1284? The dividend is an unsigned 16-bit number passed into the algorithm in a pair of 8-bit registers. The divisor ...
0
votes
1answer
1k views

Connect 8086 cpu to memory chips and io devices in proteus

I have a project based on simulating operation of 8086 processor with memory and I/O devices using Proteus simulator. Memory is eight 2K 6116 chips and I/O contains 2 seven-segment displays and a ...
0
votes
1answer
1k views

Logisim input and terminal issue

I had this final gate that I made. but when I run it in terminal. it says my output is E instead of 0/1. I wanna know why my output is E instead of 0/1. The circuit should have four inputs: A, B, C, ...
-1
votes
3answers
275 views

Startup code in pure Assembly program [closed]

I came across some articles and books that saying when, I write in high-level language like C, startup code is used to prepare for my main code but when I write my program in pure Assembly there is no ...