3,896 Topics
![]() | |
can i ask for a program in tasm that can solve arithmetic, example 1+1=2 the program is written in tasm compiler.. or code for addition in tasm.. thx.. | |
does anybody has a debuger code.means how to make debugger in assembly language... | |
I believe the disp_sum (last) call is incorrect because the program will execute but the sum will not be displayed. Project is due tomorrow (11/27) so prompt assistance will be greatly appreciated Thanks in advance! ; A Simple Calculator that performs basic arithmetic (+ - * /) .model small .stack … | |
Hello, I'm trying to get a WCF service configured to authenticate the client using X509 certificates. The service is hosted by IIS 6 and I'm getting an error that I didn't receive while testing and hosting in a console. In fact, this exact configuration works when not running is IIS. … | |
I have to pass a char as a parameter using the stack, but the stack doesn't allow anything smaller than 16bits. So I put a char on a 16bit register, push it into the stack. But how do i get the char from my function in order to work with … | |
I'm new to AT&T assembly language. I read this from linux source code(kernel 2.4.0 include/asm_i386/string). [code=c] static inline void * __memcpy(void * to, const void * from, size_t n) { int d0, d1, d2; __asm__ __volatile__( "rep ; movsl\n\t" "testb $2,%b4\n\t" "je 1f\n\t" "movsw\n" "1:\ttestb $1,%b4\n\t" "je 2f\n\t" "movsb\n" "2:" … | |
I'm having a problem in program trying to access pieces of an array. My array is declared as: [CODE]mapping DB 7,0,8,1,9,2,4,3,5,4,6,5,1,6,2,7,3,8[/CODE] The procedure that uses the function is: [CODE]infloop: _GetCh noecho cmp al, '@' je gameEnd playerGoes: mov si, 0 playerLoop: cmp al, [mapping + si] add si, 2 jne … | |
i made macro named print as following : print macro str .data x db str .code mov ax,seg x mov ds,ax mov ah,09 lea dx,x int 21h endm it's worked very well when called for one time but when called 2 or more error message appears that is 'duplicated defining … | |
I won a contest at my high school for the best geek costume for spirit week. I get to wear it to the assembly, and I'm hoping they take some pictures. If so, I'll post them here. I won either because I wore a fanny-pack, or because of the Motherboard … | |
hi i write a program to add a value in windows registry but it didn't work and doesn't add anything in registry, what's a problem? my assembler is masm32. and here is my code: [code=asm] .386 .model flat, stdcall option casemap:none include windows.inc include kernel32.inc include advapi32.inc includelib kernel32.lib includelib … | |
I am having difficulty implementing Booth's Algorithm in mips and need some assistance urgently. FOr this assignment, I have to allow the user to enter two number representing the multiplier and the multiplicant. The the Booth's algorithm when implemented in mips should print the results in both binary and decima. | |
(Using NASM on Ubuntu 7.10) I'm messing with a simple linear transposition encryption program. It added 5 to each character in the string excluding the linefeed character. I thought I would jumble it a little more by make it add 1 the the first character 2 to the second and … | |
Can someone give me some pointers where im going wrong, im new to assembly, GCC, C, NASM, NASMW. I cant get past this error when trying to make the object, is there something extra i need to install. C:\test>nasmw -f win32 prog.asm -o prog.obj prog.asm:12: error: symbol `_printf' undefined | |
can you recommend a site where i can find all mouse function interrupt and their services esp. mouse clicking.I only know some of it's services, but I don't know the service number for clicking.... | |
Hi everyone I am working on this project that involves programming the EEPROM chip using assembly language but I do not know how to go about doing this. I am suppose to be able to read from, write to, edit, and erase the eeprom. What can I do? Where do … | |
cn anyone sugest any e book or sites to study the assembly language well? i am searching forr it. | |
how can write assembly code . i mean is assembly have it own compiler . | |
Lemme first greet all my beloved fellows and i would love to give you all credits for helping each other with problems concerning java!!! I have a problem with listening methods in my code.the only respond i get is the exit part of my buttons....please i would be happy to … | |
hi , i must convert the following c code to mips assembly for my university: odd = 1020000; /* 0xF9060 */ j= 0; loop: if (j & 0x1) { printf(“odd\n”); odd++; } j = j + 1; if (j < 5) goto loop; printf(“%d\n”,odd); variables j and odd must be … | |
hello I am using a program called MPLAB-SIM and I am trying to test my interrupts on a 16F class pic my interrupts registers are setup like this movlw b'11001000' ;sets up INTCON, with PEIE and PORTA interrupts allowed movwf intcon ;uses w to set intcon interrupt control movlw b'00011110' … | |
I am writing an assembler code to do the following: ToUpper function converts a string of characters to uppercase, if they are not already uppercase. That is, the string already exists in memory (on the stack) (Yes it is Homework) I am trying my best to do everything I know... … | |
Hi, I am taking an Intro to Computer Science course. I have to translate a code to assembly. I was wondering if someone could help me out with the first line of the code. I am not sure what to do since it it ==. if (x==y) { thanks! | |
Hi, I am new to this forum so please bear with me. I want to read the bios settings (through a program) and if boot option is hard disk then i want to change the same to network boot (should save also). In nutshell, i want to configure the settings … | |
Please who can write a code in asml for the conways game of life | |
I am using 32 bit AT&T version of assembly on linux. Someone please tell me how to convert an integer stored into one ot the registers to a string that can be printed. e.g. 0x00066 should print as 102. | |
Hi, if we had the following program:: [CODE=c++]int main() { int a, d; int b=12; int c=13; a=b+c; d=b+c; return 0; }[/CODE] what would gcc produce as a result? would it be:: [CODE]fetch b fetch c add store to a fetch b fetch c add store to b[/CODE] Or something … | |
I started working with MIPS a couple of months ago and now I need to edit a given string so that it will only display the digits, arithmetic symbols and parenthesis that were in the original string as output. I though I could go ahead an print every string that … | |
I'm trying to learn something about assembly. I found this code: message db '.....Hello World.....',13,10,0 what is the meaning of the numbers after the text? | |
I am trying to write a code in LC-3 for finding the minimum and maximum values entered. So far I have completed what is below but am missing some major parts and I can't figure out what to do. ---- the lines like this is where I know something is … | |
Why does my computer reboot after i set PE bit of cr0 or run lmsw? I have set all the code and data segments | |
I Need help on how to write the full opcode of the above x86 codes. i saw like for sgdt it is 0F 01 /1. the problem is i dont know the full opcode will it be 0F01[01-this is what am not sure][then the 48 bits] FASM cannot compile the … | |
Im coding on vesa mode 116h, i knw its properties like banks windows and resolution, my only problem is that i dont knw how to switch banks and dont know what the windows refer to. I also want help on the vesa service that provides the pointer to bank switch … | |
[code] stdout.put( "Enter a number " ); stdin.getd(); [/code] lets say the user types "01020304" i need to look at every two digits(i.e. 01,02,03,04) and do some work with them. My question is how would i go about seperating these number so i can work on them? | |
hi Pals, i have a problem with MASM interrpt 10h. i want to colour s portion of the screen using the 10h interrupt after changinging to the video mode. Please help [code] .model small .stack 100h .386 .data .code main PROC mov ax,@data mov ds,ax mov ah, 0 mov al, … | |
Pretty new to assembly language and I need help with this problem. I'm trying to traverse through a string and see if each character is either a number or a operand (+, -, *, /). Everytime I run the program, it doesn't work properly. I'm pretty sure the error is … | |
Hey all, I was wondering could anyone give me any help on TASM, with regard to the in libraries, i.e. int 10h, int 21h etc cause, ive been out of college for a year, and im back now, and im finding it hard to get used to this malarky again, … | |
I need to make a program that asks the user for input 8 numbers and output the max and min value. The numbers has to be stored in an array in memory. Basically is going to be 2 loops, 1 to prompt the user for the 8 numbers and second … | |
How do I check to see if the posts are the same in the end? PROGRAM IDENTIFICATION SECTION: Input : The value of N. Output : The factorial of N. Purpose: Computes the factorial of N, after N is input by the user. PROCEDURES CALLED: External procedures called: FROM iofar.lib: … | |
I am currently studying the impact of microarchitectural techniques. I have been looking at code and how to stall it correctly, as well as how to make it more efficient. I have been doing this through several different methods and then measuring the cycles per iteration. I was wondering if … | |
my code is however whenever I tried to print something inside the function it always gives me a bad address error, can someone please tell me why?? this is my code: largest : #Function prologue subu $sp, $sp, 56 sw $a1, 44($sp) sw $a0, 40($sp) sw $ra, 36($sp) sw $fp, … | |
g'day new friends, we have the following pop up warning window: <Could not load File or Assembly 'MOM.Implementation, Version=2.0.2736.38608, Culture=neutral, PublicKeyToken=90ba0c70f846762e' or one of its Dependencies, The system cannot find the file specified> we do not have the option to revert to an earlier restore point as a lot has … | |
hello...can anybody add a code to this program to make this a memory resident program...please... [B]*sound progam* jmp input beat db 8 nota dw 3531 nota1 dw 3032 nota2 dw 4030 nota3 dw 2728 nota4 dw 2425 nota5 dw 2023 nota6 dw 1520 nota7 dw 1313 music: mov si,0 balik_sound: … | |
Hi, I was just learning about buffer overflow attacks... I was curious as to how to generate a simple shellcode. For example, I've written two codes - One is the typical program that has a vulnerability inside and the other is the shellcode. main program: [code] void test(); int main() … | |
hi there, i was currently given a task as shown above.... however what i had was juz a small program code (in assembly) between the two.. i need something longer where i can further look into its pipelining, becoz i still need to analyze each of the instruction cycle... Thanks … | |
Hello world on daniweb, I am clueless on how to start. It might be easy or it might not be. It might already be doable without any programming. I want to import and export equation editor objects or fields in and out of ms word documents. Mostly i want to … | |
hi guyz, i was trying to wirte a program that display the cpu details of a local and remote machine in java. but later found that it not that easy and the better way is to use assembly first then read from a text file now using java. my problem … | |
I am trying to implement a half adder into my code. Does someone have this on hand? Your help is greatly appreciated? | |
Hello im using masm to divide two numbers and get a divide overflow error once I execute the file. I don't see why I am getting that output when the quotient is not larger then 16 digits. Why am i getting a overflow error? Here is the code [code] title … | |
I have a HP VT6200 that I shut down normally and all was fine. I came back about 4 hours later and pressed the power switch and all I got was a battery light, a power light and a very dim HDD light (dim HDD light is normal until after … |
The End.