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
6
votes
1answer
5k views

MIPS (PIC32): branch vs. branch likely

It's been a while since I've looked at the recent Microchip processors & I've been trying to learn a little bit about the PIC32 MIPS instruction set. I noticed there are two sets of branch ...
3
votes
2answers
1k views

PIC assembly code simplify

I need to convert the following PIC assembly code (below) to an 8051 assembly. It is an inline assembly code. Actually, I intend to convert it to C. I am not familiar with the PIC MCU so I do not ...
0
votes
1answer
2k views

How is a two-pass assembler designed? [closed]

What is the algorithm for the first pass and the second pass of an assembler? I have been looking for a description or tutorial but haven't found one. If there are tutorials that explain these ...
4
votes
2answers
427 views

How are cpus enumerated/identified/counted by BIOS and other low-level routines?

By what mechanism is a BIOS or a kernel able to "see" (enumerate,identify,whatever term is right) other CPUs in an SMP system? How is the boot CPU able to initialise and then "launch" the second or ...
-1
votes
2answers
4k views

Creating 1 hour delay with 89C51 micro controller

I am writing an Assembly Program function for 89C51 which can create one hour delay. I can't use any other micro controller as only 89c51/52 is available locally. So I am stuck here because even when ...
-2
votes
1answer
1k views

Assembly Packed Bcd

I was trying to make a subroutine called count that will count the number of occurences of the string ‘hello’ in the 64 KB external memory with 8051 microprocessor. What i wanted to make is that ...
2
votes
1answer
1k views

MIPS Main Control Logic

In the Patterson & Hennessy book, This is for these 4 instructions, if I need to implement instructions like andi, addi, ori, j, etc, do I add on to this table? Or do I do something else? ...
5
votes
1answer
7k views

MIPS Assembly Memory Addressing “Pseudo Direct Addressing”

Could anyone explain how does Pseudo Direct Addressing work in MIPS? I don't really get how does using the last 4 bits from the PC (Program Counter) fit into the picture? Suppose I want to goto ...
3
votes
2answers
900 views

Thermal adhesive for chip heat sink

I need to glue a small heat sink on top of a DIP transistors array. At the moment I have used this adhesive: http://uk.farnell.com/fischer-elektronik/wlk-5/adhesive-thermal-conductive/dp/1211723 I ...
2
votes
2answers
589 views

Creating an ASM file that will return the characters located in 8 consecutive registers

I have to create an ASM file for the PIC18F452 that does the following: (a) define the label MapName as the first of 8 consecutive registers containing a null-terminated string of not more than 7 ...
4
votes
2answers
287 views

Is There An Automatic Precision Screwdriver For Small Works? [closed]

I need automatic tool to work with small electronical things but don't know of any good one. I am looking for something like this but of better quality and switch but push forward/reverse button: ...
4
votes
2answers
499 views

How important is it to seal/coat a PCB project for *normal* conditions?

Reading through What's the best way to protect a board from corrosion in a hot/moist environment? it has specific advice for a board/project that will be used in a harsh environment. How ...
12
votes
8answers
23k views

Arduino With Assembly?

Since for my venture into Microprocessing I decided to go with Atmel AVR due to the vast resources available. And Arduino seems to has alot as well, not to mention their starter kits seem more "at my ...
19
votes
11answers
8k views

What is a Good Starter Microprocessor to learn Assembly?

So I'm wanting to learn Assembly first on an MP, then move onto C (since it seems like that's what most of them use). I'm wanting to get into Embedded Programming, I really love low level C stuff (...
7
votes
1answer
582 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 ...
3
votes
1answer
415 views

How do I add support for PIC12LF1822 to gputils

I've used the PIC assembler and tool kit from gputils with success before, but I noticed that they're lacking support for my new pic12lf1822 chips. How do I go about getting it supported? After ...
9
votes
6answers
10k views

Programming Differences between a Microcontroller and a Microprocessor?

So I often see books/tutorials and references when programming in assembly to a microprocessor.....then I see some refer to it as a microcontroller. For instance the Atmel ATtiny2313....i saw some ...
4
votes
3answers
3k views

Arduino/Atmel Output Assembly?

One thing I do not understand in reading about doing Assembly with the Atmel AVR (or perhaps with Arduino platform) is the actual outputting to devices (like LEDS/motors) and such. Most Assembly "...
2
votes
2answers
1k views

AVR Assembly with Servo/Motors/Etc

So I've been learning AVR assembly in my own time, I rather like it and I understand registers/counters and such. But the problem is...most of the websites I read online/tutorials don't really talk ...
6
votes
4answers
5k views

what is an average CPH speed for hand SMD assembly?

What would be the average speed (an experienced) person would assemble surface mount components on to a PCB? Assuming they have desk that is correctly set up (pick and place station) and the PCB has ...
1
vote
1answer
767 views

Bit position to bitmask conversion using MPASM directives

I'm writing firmware for a PIC16F877A in assembler, and I want to set some constants at the top of my source code to indicate which port is used for what, so that if needed I can easily change all the ...
3
votes
2answers
3k views

How do I do indirect addressing in PIC ASM?

On my 16F628A's I want to iterate of a predefined sequence of values. How do I do this? In C, I would do something like this: char vals = {22, 10, 34, 16}; char id = 0; port = vals[id]; id++ It's ...
5
votes
2answers
767 views

What's the most effective way to save/restore a PIC status bit

I want to save/restore the PIC's carry bit. I'm using the 16F628A. ...
19
votes
6answers
2k views

Identify processor type from raw binary code?

Not really related to chips, but hopefully I'll get some directions to follow from here. I got a chunk of code, but I don't know what processor it intended for. Are there tools available that can ...
10
votes
3answers
8k views

Microprogramming vs. Machine Language programming

I'm a bit confused between the microprogramming level vs machine language level. For example: Where do both types of programs reside while being executed? Do either have a 1:1 mapping to assembly ...
3
votes
2answers
2k views

MIPS: MARS editor not showing correct value for ASCII string?

I'm using the MARS simulator to explore the MIPS cpu. I have a simple assembly program: .data ascii1: .asciiz "8C@2" I expect the value in the memory address ...