2,878 Topics
|
|
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 … |
|
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 … |
|
hello i have a problem in assembly how i can disply and refresh time on VGA buffer, on 0b800h |
|
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. |
|
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. :) |
|
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 … |
|
|
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 … |
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. |
|
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 … |
|
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: … |
|
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] |
|
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 … |
|
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 … |
|
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 |
|
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, … |
|
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 … |
|
Can I write IL programs run directly? exam for the IL program what is business process model in UML? |
|
|
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 … |
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
[ ] 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 … |
|
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 … |
|
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 … |
|
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 … |
|
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; … |
|
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 … |
The End.