Questions tagged as 'assembly'

0
answers

How to do this routine in assembly show 3 digits on the screen?

I have the following code in avr assembly. link The teacher passed this code and asked us to have the program show a 3-digit result on the lcd screen, since now it only accepts 2. The routine is this: converte_ascii_2d: ld temp, -X...
asked by 02.08.2018 / 22:53
1
answer

Reading txt in Assembly i8086

I have the following code to read txt file: ; um programa que demonstra a criação de um arquivo e a ; leitura do mesmo .model small .stack .code start: mov ax,@data ; endereço de base do segmento de dados mov ds,ax ; é colocad...
asked by 01.06.2018 / 04:16
0
answers

String Concatenation in Assembly x86

I have to implement a function that concatenates a String3 pointed to by ptr3 to strings pointed to by ptr1 and ptr2. I do the main() in C, and the functions in Assembly x86. When executing, output is 123 and it should be 12345...
asked by 04.11.2017 / 00:52
0
answers

Instruction "sarl" - Assembly

I have a sarl $9, mem32 statement. I know the sarl instruction, shifta to the right a certain number of bits (in this case 8?) and know that the var. "mem 32" has a 32-bit dimension and content -2048 (decimal base). Now knowing these poin...
asked by 03.11.2017 / 17:35
0
answers

Save characters from the screen

Good afternoon, I want to save the characters to a file. The size is 20 rows and 40 columns. I developed code, but it's only saving 14 lines. Can someone help me? Code: mov bx,0 mov si,0 mov ax,0 mov di,si mov cx, 80 lab_ciclo: mov...
asked by 04.06.2017 / 13:05
0
answers

How to add 13.10 after reading character line?

I am trying to write an array of 40x20 characters, doing 2 cycles, in which character reads the character saves in a buffer, but I know we have to add 13,10 to change the line and the cursor back to the beginning. But is 13.10 considered a byte?...
asked by 25.05.2017 / 13:29
0
answers

Determine the values of M and N [closed]

M and N are constants defined by #define int mat1[M][N]; int mat2[N][M]; int sum_element(int i, int j) { return mat1[i][j] + mat2[i][j]; } Suppose the above code generates the following in assembly: sum_element: pushl %ebp movl %esp,%...
asked by 19.01.2017 / 18:25
0
answers

Read file in HD [closed]

Where can I find code in Assembly to read files on HD? For example, in the FAT32 file system. Or a description of your tables and organizations so that I can schedule it myself. I use NASM as an assembler, platform x8086. I want to test wi...
asked by 05.10.2016 / 04:07
1
answer

Product of nasm matrices

I have to make an algorithm that multiplies an array A by an array B and places the result in a third array. The arrays are square, of the same size and will be passed by reference by another C program. The problem is that the errors only app...
asked by 06.06.2016 / 21:53
0
answers

Problem with Assembly code for Linux 64

I've created a very simple 64-bit GNU Asssembly Linux code and it works. Except that after the strip it stops working. What could be happening? Start the code .section .rodata clear: .ascii "3c.section .rodata clear: .ascii...
asked by 01.04.2016 / 22:03