Questions tagged [Assembler] (369)

1
answer

How to enter and output a number in assembler(AT&T GAS syntax)?

Greetings to all. Studying the development on Assembler When training faced the challenge of writing a calculator. Write under Linux(Ubuntu), therefore we have to learn the syntax of GAS(AT&T) There is a problem with the conclusion, namely when compiling this code: .data number: .long 0x00000595 str: .space 4, 0 i: ....
Tess_Kirl asked April 4th 20 at 14:16
1
answer

Graphics in Assembly language NASM and FASM in Sega?

All Pref. I have a goal to explore the creation of sounds, graphics, animation with I/O in assembler. And on Sega consoles, including Sega Master System, MegaDrive, Saturn. Test on Oracle VirtualBox Assembler - NASM Throw all the resources and compilers on Windows, you know. Accepted: books, videos, websites. PS: Yes, I...
aracely asked April 4th 20 at 13:55
1
answer

How to solve a problem to work with two arrays in asm?

Good day! I need to write a program in which I have an array of 16(32) bytes. Need from c++ to move the array to the assembler box, where you can move this array to another array all the elements that equal to the sum of the next. In the assembler the maximum use of the double word. That is, the registers e*x you can't tak...
Zoila.Lowe84 asked April 4th 20 at 13:10
1
answer

What is the error in the code of a nested Assembly?

I work for the dev, in Ubuntu. Started working in the gcc. Took assembler, and tried to make primevial. But something went wrong. Code:#include <iostream> #include <stdio.h> using namespace std; int main(int argc, char** argv) { int a, b, c; cin >> a; cin >> b; asm ( "mov a, %eax \n\t" "mov b...
riley_Dooley22 asked April 4th 20 at 01:51
3
answers

What is my error in AVR where I need to loop, or what to do?

Can't understand what I need to do to fix this miracle, like no breaks, and if there is something where I loop in General please explain. Here is where the code breaks in memory 0xfffff And here is what
Dillon.Upto asked April 4th 20 at 01:36
2
answers

If MASM for OS?

Began to think about learning programming languages. And, of course, chose the Assembly language. Suitable for writing operating system MASM? There are others, but I found this language a good documentation.
elsa asked April 4th 20 at 01:28
0
answer

What does error cannot load from non-primitive location?

Wrote this code #include char string1 ="A"; char i; char j = 0; // Enable USCI_A0 TX interrupt int main(void) { WDTCTL = WDTPW + WDTHOLD; // Stop WDT P1DIR = 0xFF; // All P1.x outputs P1OUT = 0; // All P1.x reset P2DIR = 0xFF; // All P2.x outputs P2OUT = 0; // All P2.x reset P1SEL = BIT1 + BIT2 ; // P1.1 = RXD, P1.2=TXD P1...
Amari_Schimmel asked April 4th 20 at 00:18
0
answer

How to make a fully working code?

fld [x] ftst fstsw ax sahf jbe @2 fsin fadd st(0), st(0) jmp _store @2: fld1 fld1 fadd st(0), st(0) faddp st(1), st(0) fadd st(0), st(0) fsubrp st(1), st(0) _store: fstp [y] --------- Task: For a given real x find the value of the following function f taking real values: f(x) = 2 * sin(x),if x>0 6 - x ,if x<=0
mathew_OReilly42 asked April 3rd 20 at 19:04
3
answers

What you need to know before learning assembler?

And what you need to know before you study memory organization, architecture and so on. Want to better understand library for programming stm32 microcontrollers and not only.
piper_Purd asked April 2nd 20 at 17:32
1
answer

How to write a program with the following algorithm (NASM assembler)?

1)to withdraw the invitation; MADE 2)enter from the keyboard a string (assuming it contains a decimal numbers and any letters); MADE 3)find in the string all the numbers and found for each of the digits set to "1" in the register ax bit number equal to this number. Display the contents of the register ax in the form of ze...
darryl.Bailey asked April 2nd 20 at 17:11