3,896 Topics
![]() | |
Hi, I have a problem with using variables in assembly. I´m new to assembly and I am trying to use Roby´s programming tutorial: [url]http://geocities.com/SiliconValley/Park/3230/x86asm/asml1001.html[/url] The problem is that when I have declared a variable and try to move it. For example: ideal p286n model tiny codeseg org 100h var1 dw … | |
It is meant to count the first two numbers in the array and then place them in ascending order, but sth wrong. Any idea? [code=assembly] Code segment jmp main add1 dw 9,3,2,7,1,4,2,5,8,1 main: mov si,0 call orderab exit: mov ax,04c00h int 21h orderab: cmp add1[si],add1[si+2] jle finish mov ax,add1[si] mov … | |
Hello, I'm new to assembly programming and I'm facing some problems using the "as/gcc" compiler on my MacBook. For example, it seems that I can't use labels for jmps/loops. The following code: [code] .intel_syntax noprefix ... ... cicle: <instructions> <instructions> <...> loop cicle [/code] Returns the error: "t.s:16:suffix or operands … | |
Hello! I'm a newbie in assembly and i'm facing some difficulties with handling 64 bit integers in pcSpim. What i am trying to do is read a string, convert it to a 64-bit number and then store it in two 32-bit registers. Should i create a 'for' loop which reads … | |
I have an array of strings. I want to find an element of array How do I do that? Here is what I tried, it should print out anything but its still does. [CODE] .model small .stack .data goldenboard db "1$","2$","3$","4$","5$","6$","7$","8$","9$","A$","B$","C$","D$","E$","F$","_$" var db "1$" .code mov al,[goldenboard] mov bl,[var] cmp … | |
I'm trying to output a hex value and TASM won't let me use any count on rotates and shifts other than 1. If I put rol dx,1h it works fine but if I put rol dx,4h it generates an error. So I have to call rol dx,1h four times...it's a … | |
how do I do it? I'm trying to make a conditional jump to a label: jz newmm but tasm says that the relative jump is out of range by 000D bytes. How do I change this to a long jump? How can I make it jump to an address, rather … | |
emergent;help i a project in encryption any text of alphapets and numbers into a random characters(from A-Z and 0-9 numbers) using assembly if u please | |
Hello all. This past semester I took assembly programming. The programs in class were done on windwos machines and now I am trying to write some assembly on my linux machine, which has an intel 64bit processor. I am having a problem converting integers to ascii for output. I am … | |
Hi I have a .exe file what I export to ASM by using "PE explorer", later I modify this .ASM and I want it back in exe. How can I do it? Thanks in advance | |
How do I save a string? Say I type in "sfrider0." How do I store that then retrieve it later? I've been messing around with it for a while and the most I can get it to do is tell me how many characters are in it. Any help? | |
Hellow, I have got to make a .s file that can do the following stuff: -image pixels are tored in memory (32bit/pixels: R-G-B alpha) -write an image correcting algorithm *copy a port of the image to another spot *increase the amount of red in the picture *Increase the brightness (simple … | |
Hi all, My problem is continue from this post: [url]http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/353b5bd8-b86e-403a-883d-4c13d959e5f1[/url] I created a Unit Test by NUnit to test the method which is stored in DLL. The method should return a complex type variable (an object instance, Company for example). When the calling side (in Unit Test module) cast the … | |
My homework assignment is to convert this c++ code into assembly. Here is the code [code] void maxInt (int xVal, int yVal, int& big) { big = xVal; if ( big < yVal ) big = yVal; return; } [/code] I have successfully created a program that will find the … | |
| |
I'm not sure what is going wrong with my program. When I assemble and run it as a com file, I get the error Required Parameter Missing. When I try to debug to see if the carry flag is set for some reason I see that it does cmp ah, … | |
I am working on a program, and I can't figure out what I'm doing wrong. Any help would be appreciated. Here is what I have to do: [b] Write a procedure named St_concat that concatenates a source string to the end of a target string. Sufficient space must exist in … | |
guys! i realy need your help! i have this big problem of how to convert hex to decmal. theoreticaly it is very easy but the problem is that in assembly, everything is done in hex example if u add 10d+10d, assembly will add it as Ah+Ah = 14h. thats where … | |
[COLOR="Red"]Problem:[/COLOR] Write a program that displays a single character in all possible combinations of foreground and background colors (16x16 = 256). The colors are numbered from 0 to 15, so you can use a nested loop to generate all possible combinations. Here is what I tried, but it doesnot come … | |
how do i read an input in LC-3 where it checks for yes or no as an answer to a prompt and returns 1 if yes and no if 0. thanks | |
hello everybody! i'm working a project on PIC 16f877 i want to know how much time need to send one (1) character via RS232 (in assembly code) i'm write in C and i measure this time at baud 115200 almost [B]100us /character[/B] can i minimize this time if i write … | |
I'm new to assembly language and have written an instruction sequence for the MC68HC12 ,to input a string of characters using the SCI channel 0. The input character string, will be no more than 20 characters, and will be stored in memory when an EOT character is received. Port A … | |
Hello! I want to go through a string char by char and i've heard a byte ptr is the way to do this, but i'm having problems with using it. I tried with the code below, but i get an error saying: "comma or end of line expected" at the … | |
hi all, i am new to the forum and also new to c# and windows forms.i am trying to develop a windows form which can download multiple zip files by taking URL and filename as input from user. but getting an exception, Exception detail, System.Reflection.TargetInvocationException was unhandled Message="Exception has been … | |
I have a question , how to integrate code with machine. Do i need to write assembly code or machine language or i have to use C/C++. Can u guide me what could be the solution. And I want one code example of code integration with machine. Kindly suggest some … | |
hi guys, I just wanna learn how to convert from ASCII character to the value e.g. input X then the output is 10 etc. anyone know please help thanks :lol: | |
IN CPP: [CODE]extern "C" { void ENCRYPT_CPP(char buffer,int count, char CIPHER,int CIPHER_LENGTH);[/CODE] [CODE]void ENCRYPT_CPP(char buffer[],int count,char CIPHER[],int CIPHER_LENGTH ) { int t=0; for( int i=0; i<count; i++) { buffer[i]=buffer[i] ^ CIPHER[t % CIPHER_LENGTH]; t++; } } [/CODE] Im having trouble converting this cpp function into an ASM procedure. The closest … | |
hello everyone i have just started programming in asm i am learning 16 bit assembly from art of assembly by randal hyde i hav written programs in notepad but i want to assemble them can u give me some advice on how to assemble them(16-bit) | |
I need to make modifications to [B]BIOS[/B] code which runs at [U]PowerUp[/U] or [U]Boot[/U] time and I need to access more than the lower 1,048,576 bytes of memory. Is it possible to switch into [B]Protected Mode[/B] at this time in order to access more memory? If so, how? What is … | |
using c in making operating system needs to have a platform on which its compiler will run and so its executable file too. So now how to run the c file made in c on a bare machine without any platform. some of you suggested to go for assembly coding … | |
Can someone suggest me a method to convert a floating point number into binary using assembly? for example 5.5 would be 000..101.1 but how would you go on about this in assembly? | |
Hello there, I've installed VSTO to my pc and I'm trying to make an application using the MS Office in my VS (2008). I've already added the reference to Microsoft.Office.Tools but when I compile it, it gives me the error: [QUOTE] The type or namespace name 'AddIn' does not exist … | |
Hi, I have a simple code written in MIPS assembly that reads an integer from a user and displays it to the screen. The code is as follows: [code] main: la $a0, in_msg li $v0, 4 syscall li $v0, 5 syscall move $t0, $v0 la $a0, out_msg li $v0, 4 … | |
I'm writing a program that can lock the keyboard. I patch into ISR 9(the keyboard interrupt) and manipulate the head and tai pointers. It work fine , but there're something I don't understand: -It seems that I cannot use int 21h when patching into an interrupt -When I run my … | |
I like writing assembly in debug under command prompt in windows, mostly because I don't have to worry about compiler rules and it's a lot better for learning how the processor works more in-depth... moving things to and from the memory rather than using the stack, using memory addresses rather … | |
Hello once again on this site with a new problem. I am writing a program for calculating Fibonnaci series term for specified input. Have written the following code, but gives me some pointer dangle error. I think I have handled stack management well. Cant figure out the problem [code=asm]TITLE fibonacci … | |
Hi All I am getting this error message when i run my pocket pc application using active sync on my PDA. i get this message when I am using threading in my application otherwise the code works but application crashes when i am trying to access the menus while the … | |
I'm writing a program to output a stair step waveform from VoutA. How do I tell PORTP to output 2 volts? [code]#include "d:\miniide\hc12.inc" org $1000 ldaa #$FF staa DDRP ; configure PORTP for output ldaa #$6F staa DDRCAN ; configure PCAN6..PCAN5 for output bclr PORTCAN,$20 ; select VOUTA output xx … | |
Hi. I tried to solve the below problems, but couldnt get them right, could you please help me out how to start or explain on how to solve the problems below. thank you Write an assembly program to copy data from table1 at location 1100 to table 2 at location … | |
Ok, so I've been working on this code for a day now and i thought I had all the kinks worked out, but my program isn't working right. I'm writing this code to simulate a game (basically a simulation of a simulation) used to illustrate some topics we are trying … | |
Hello guys I am a bit confused about somethink Consider having an 8x8 array declared like as follows : A: .word 0, 1, 2, 3, 4, 5, 6, 7 .word 7, 6, 5, 4, 3, 2, 1, 0 .word 0, 1, 2, 3, 4, 5, 6, 7 .word 7, 6, … | |
sorry if this a bit of a pain and there are other threads to read about this but can anyone explain how arrays work a bit, i need a quick refresher course. like how they work, are they like the equivalent of stacks in assembly language? and say you set … | |
In Intel syntax: jmptable DD 755, 32, 0.0000036, 672 How to define this jmptable array GAS assembly AT&T syntax? | |
Hi I would like someone to check what am doing 1- Declare a 4-byte variable in a relocatable segment of internal directly addressable data memory. [code] x SEGMENT data RESG x x: DS 4 [/code] 2- Declare a 2-byte variable in an absolute segment of internal directly addressable data memory … | |
hi every one, i have create an asp.net application when i worke localy (on my PC) it work well without any erorr but when i deploye it at web server (vps server ) it give me this erorr: [COLOR="Red"] Configuration Error Description: An error occurred during the processing of a … | |
.model tiny .code ORG 100H HOST: mov ah,9 mov dx,OFFSET HI int 21H mov ax,4C00H int 21H HI DB 'hello world$' END HOST | |
Hello! I need to do a program in NASM language and I have no idea how to do it! The problem is the following: Write a NASM program that does the following: (i) prompts the user to input a line, (ii) detects if the input line contains ‘ end.’, and … | |
Hello! I need to do a program in NASM language and I have no idea how to do it! The problem is the following: Write a NASM program that does the following: (i) prompts the user to input a line, (ii) detects if the input line contains ‘ end.’, and … | |
can u guys pls tell me how to assemble a com file using masm32..... i am new to masm so pls give step by step instructions |
The End.