2,888 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 … | |
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 … | |
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 . | |
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! | |
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. | |
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, … |
The End.