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.

443 questions
22
votes
7 answers

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 help me identify the code type? What statistic…
mentalist
  • 395
  • 3
  • 7
21
votes
3 answers

What actually is a shadow register?

I noticed the term Shadow Register while going through a datasheet of a TMS320F28335 DSP. What does it actually mean? Does it have a physical location in the CPU as the general purpose registers have?
noufal
  • 1,575
  • 3
  • 20
  • 25
19
votes
4 answers

What stops an assembly program from crashing the operating system?

First of all, I am a beginner, so if this question sounds silly, please point out the incorrect assumptions. From what I understand, the job of an operating system is to manage hardware and the software that runs on the OS. Also, from what I…
Flux
  • 321
  • 2
  • 13
19
votes
11 answers

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 (Kernels/Modules for Linux is mainly what I've done),…
user3073
18
votes
8 answers

Writing DSP algorithms directly in C or assembly?

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 like FIR and IIR filters and library functions for…
doubleE
  • 709
  • 1
  • 11
  • 19
17
votes
12 answers

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 machine code, and then apply power to the…
idle_engineer
  • 317
  • 2
  • 5
16
votes
3 answers

From C to Assembly

Suppose that we have the following piece of C code for an avr-8bit: int v1=1; int v2=2; v2=v2+v1; I expected the following disassemble ldi r18, 1; ldi r19, 2; add r19, r18; but after I ran: avr-gcc -mmcu=atmega2560 Test.c -o…
DarkCoffee
  • 415
  • 1
  • 4
  • 11
16
votes
1 answer

What features distinguishes real-time from other types of os?

I'm experimenting with a small so-called real-time kernel that basically can do nothing but counting to the next prime. It uses interrupt-driven I/O. But why is it a real-time kernel? I read that Linux became a real-time kernel in 2002, is that…
Niklas Rosencrantz
  • 1,694
  • 6
  • 33
  • 62
15
votes
4 answers

AVR SEI instruction

The AVR SEI instruction (http://www.atmel.com/webdoc/avrassembler/avrassembler.wb_SEI.html) waits for the next instruction to finish before enabling interrupts. If I use another instruction to set the I flag in SREG, will this also wait 1…
jayjay
  • 347
  • 1
  • 3
  • 8
15
votes
2 answers

Silkscreen versus assembly layer

Is there any example, preferably by photos, how does assembly layer on PCB differ from the silkscreen? I understand, that silkscreen reference designators should be left visible after the parts are mounted on the board, and assy layer information…
peter.babic
  • 307
  • 3
  • 10
15
votes
6 answers

Why use AutoCAD Electrical?

I'm an electronic & electrical engineering student in first year of university. I have had to use a few core programs as part of my course for programming and simulation software. However I came across AutoCAD Electrical and struggling to understand…
14
votes
2 answers

Fiducial marks: Do they need to be a pad or is it okay if I use the top silk layer?

I have been advised by a more experienced engineer to integrate fiducial marks on my designs for P&P automatic assembly referencing, but he didn't say how to do it exactly. I googled it, and I see that most designs use pads for this purpose. Why…
Emre Mutlu
  • 840
  • 6
  • 23
14
votes
5 answers

Conductive object to raise 6mm height off PCB

I am designing a PCB where I expect to have a certain part assembled at the edge of each board (blue in the picture below). However, this part needs to be at connected/soldered at a height of about 6 mm above my PCB. Therefore, I'm considering using…
Thomas E
  • 715
  • 6
  • 16
13
votes
9 answers

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 my level." The problem is I want to learn it in…
user3073
11
votes
6 answers

What is the reason my PIC16 multitasking RTOS kernel doesn't work?

I am trying to create a semi-pre-emptive (co-operative) RTOS for PIC x16 microcontrollers. In my previous question, I've learnt that accessing hardware stack pointer is not possible in these cores. I have looked at this page in PIClist, and this is…
abdullah kahraman
  • 5,930
  • 7
  • 59
  • 104
1
2 3
29 30