2,878 Topics

Member Avatar for
Member Avatar for sandorlev

Hello, I'm writing a compiler in C++ which generates x86 assembly code. I'm using masm32 to test generated code. I don't really know assembly, I have to look up a lot of things while writing code. My problem is that when I generate the code for a division, like 4/2 …

Member Avatar for theifyppl
0
759
Member Avatar for theifyppl

Hey everyone. I'm using GAS assembler (AT&T syntax) under linux, and I'm trying to make a function that converts a string of numbers to an integer. I thought I had everything nailed down, but when I created a simple test program to test out the function, it caused a segmentation …

0
52
Member Avatar for ahmad j

hello i have a problem in assembly how i can disply and refresh time on VGA buffer, on 0b800h

0
19
Member Avatar for larvee

How to create an assembly program that will allow the user to enter somer characters and group the characters according to the following: alphabets, numbers, and special characters. ASAP. thanks.

Member Avatar for thines01
-1
3K
Member Avatar for hqt

sorry to post this stupid question here. I'm just learning Assembler and a problem from my book is: input: a string from a user. output:character in that string. for example: input: DANI so output is: D A N I I just can received a string from user. thanks. :)

Member Avatar for thines01
0
78
Member Avatar for slicer

Hi I am trying to compute the modulus of two numbers in assembly code. As I am more fluent in C++ it is hard for me to understand the concept of modulus as all I use is the symbol % to compute. The problem I am doing is computing the …

Member Avatar for slicer
0
11K
Member Avatar for AndiNo

Hello everyone! For the last week I've been trying to convert an EXE file into a DLL. I read about 1000 Google pages on the way and now know much more than in the beginning :) I have nearly succeeded in getting the "DLL" to run but there is one …

Member Avatar for AndiNo
0
245
Member Avatar for ameypes

Please let me know how to install nasm in ubuntu? And later how to write a assembly code in it and compile and run it. Please help. I tried using ./configure to install it, but it didn't work.

Member Avatar for Salem
-1
219
Member Avatar for crazydog115

First, I'd like to say that this IS a school project. I'm not going to try to hide that. Anyway, I was provided with this c++ code: [CODE] #include <iostream> using namespace std; //----Prototypes------------------------------------------------------ void CmpTest( char *buffer1, char *buffer2, int size ); int MemCmp( char* mem1, char* mem2, int …

Member Avatar for Salem
0
272
Member Avatar for akssps011

I am writing a code for adding a series of 8 bit numbers. But it is displaying absurd characters in output. What may be the error ? [CODE] ASSUME cs:code, ds:data data segment LIST db 23H, 46H ,02H,12H COUNT EQU 04d ;RESULT DB 01h DUP(?) data ENDS code segment start: …

Member Avatar for NotNull
0
84
Member Avatar for akssps011

Why in a code fragment like the following we need to append a zero before a-f ? Is there any reason behind this or is this a convention for signed numbers ? [code] list dw 0a876h,4567h,0b234h [/code]

Member Avatar for Salem
0
58
Member Avatar for kacete

I'm trying to program a simple traffic light control using a 8051 micro-controller and assembly language. I use the Multisim application for simulation purposes. I'm having a problem with the timers. I want the red and green lights to be on for 10 seconds and the yellow ones for 2 …

Member Avatar for kacete
0
3K
Member Avatar for tr6699

I have discovered a bug in some assembly code I have been working with but can't figure how to fix it. When shifting left by 0 the result ends up being 0 instead of jut the number. The same applies when shifting to the right. Any and all help is …

Member Avatar for tr6699
0
98
Member Avatar for mannoosh2000

Hello, I have got an assignment to modify an existing ISR. Can someone guide me how to do so? It is to write an assembly program that exploid an existing ISR and modify it. Thanx

Member Avatar for mannoosh2000
0
86
Member Avatar for xerreck

Hello everyone I am working on a secruity program Demo. The program should allow the user to enter a message, one character at a time. The program should then display the corresponding digit or punctuation according to the ASCII character set. For example, if the user enters the letter a, …

Member Avatar for xerreck
0
152
Member Avatar for Dejvis

Hello need help. Maybe you can make the in assembler that the temperature in ° C to convert ° F temperature units. This translation is carried out according to the formula (° C × 9 / 5) + 32 = ° F. I need all program code. Thank you. BR …

Member Avatar for jwenting
0
42
Member Avatar for joseph2010

Can I write IL programs run directly? exam for the IL program what is business process model in UML?

Member Avatar for kvprajapati
0
51
Member Avatar for Juniahh

So I'm trying to write a program that will display a grade depending on the user's input i.e. 90-100 (A) 80-89 (B) 70-79 (C) 60-69 (D) 59 below (F) this is what I have so far but I don't know what I'm doing wrong. :\ It assembles and it'll let …

Member Avatar for Juniahh
0
113
Member Avatar for TSaunders84

i have this code i have to translate it to machine code assembly language and this is really confusing i have to right [CODE] x = 8 y = 12 if(x > y) x = y - x else x = x - y and int x = -5 int …

Member Avatar for SamY
0
135
Member Avatar for ahcfan

Hi, i'm currently learning assembly with the nasm assembler and i'm stuck trying to get a memory address into a register. Here is what I have: [code][bits 32] [org 100h] section .data msg db "Hello", 0 section .text mov si, [msg] ;lea si, [msg] ret[/code] I read the nasm manual …

Member Avatar for lee.j.baxter
0
100
Member Avatar for ncwolfe

Here's the program I wrote not using a procedure: [CODE] .data target BYTE "aabccdeef", 0 freqTable BYTE 256 DUP(0) space BYTE " ", 0 .code main PROC mov edi, OFFSET target mov esi, OFFSET freqTable mov ecx, LENGTHOF target mov eax, 0 L1: mov al, [edi] movzx eax, al mov …

Member Avatar for ncwolfe
0
435
Member Avatar for jonnyboy12

Hello i have some brief questions about loading functions from a dll. Im having problems understanding the difference between a function adress and a function hash. For example i know that when i open up kernel32.dll in a dll export viewer. The function address of loadlibrarya is ox7dd774bc6 and then …

0
47
Member Avatar for andrew732

I'm not sure exactly what I'm looking for or whether it exists, but I was hoping to get any ideas from the assembly experts here. I do know basic x86 and ARM assembly from classes but have not used them much in "real life." Ideally, what I would like is …

Member Avatar for andrew732
0
433
Member Avatar for riccardo-m

Hi, I'm trying to use the 8-bit result from an ADC to make a time delay. It is working except that time delay is only increasing after the input goes above 2.5V. The input is 0V to 5V from a 1k POT. Any ideas why it would not start working …

0
51
Member Avatar for Nicholas_Roge

[ ] I've got a working bootloader. Now I need to learn how to pass control from that bootloader to... Well, I'm really not sure how to do that. [ ] Once I have passed control out of the bootloader. How do I access the graphics driver? [ ] How …

Member Avatar for NotNull
0
155
Member Avatar for mjacqu3

I am taking a class on assembly language for intel based computers and for our final project we need to develop a simple game in assembly. For my project I need to make the console window bigger. I looked in the textbook and i cant find anything about resizing the …

Member Avatar for NotNull
0
85
Member Avatar for riccardo-m

Hi, I have a circuit that charges a capacitor and discharges it. The length of the discharge pulse is supposed to be determined by the ADC value from a POT. The pot is wired as a voltage divider and I have tested that the voltage to the pic pin varies …

Member Avatar for riccardo-m
0
117
Member Avatar for simona_ragazza

Hi guys, I'm new here I just started learning assembly and tomorrow I have an exam and I have a problem with a task. I can't find code for division and I module, so I have this task, if you can pls write me the code: Write a code for …

Member Avatar for Salem
0
97
Member Avatar for Mme

I'm working with a HCS12 Motorola chip trying to make a MIDI player. Got stuck on the function of play/pause/forward/back. These are controlled by external switches set to high and low. Below is my attempted switch settings: [CODE]switches LDD $0000 CPD #$0001;"pause" button BNE AFTER_1 PAUSED LDD $0000 CPD #$0002; …

Member Avatar for Salem
0
143
Member Avatar for Dwarrel

Hi, i'm trying to learn some assembly, ive got a assignment from school to control a lcd screen. I've got some sample code that i mostly understand but i can't figure out what the SBI command does. Using atmega32, with avr studio 4 [CODE]sbi PortD, LCD_E[/CODE] At this point PortD …

Member Avatar for Dwarrel
0
3K

The End.