2,888 Topics

Member Avatar for
Member Avatar for vhinchies

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..

Member Avatar for mytime19
0
400
Member Avatar for sweety0

does anybody has a debuger code.means how to make debugger in assembly language...

Member Avatar for Evenbit
0
78
Member Avatar for khalifah

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 …

Member Avatar for khalifah
0
97
Member Avatar for eyehategod

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 …

Member Avatar for eyehategod
0
81
Member Avatar for forandom.pan

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:" …

Member Avatar for Duoas
0
126
Member Avatar for tiki_master

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 …

Member Avatar for Duoas
0
266
Member Avatar for coolerfantasy

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 …

Member Avatar for Duoas
0
109
Member Avatar for BlZbB

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 …

Member Avatar for BlZbB
0
243
Member Avatar for chetah

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.

Member Avatar for Duoas
0
2K
Member Avatar for bitRAKE

(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 …

Member Avatar for bitRAKE
1
8K
Member Avatar for AlanUK

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

Member Avatar for Duoas
0
103
Member Avatar for loimarie

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....

Member Avatar for Salem
0
137
Member Avatar for blramsey

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 …

Member Avatar for vigneshvh
0
104
Member Avatar for jbstin

cn anyone sugest any e book or sites to study the assembly language well? i am searching forr it.

Member Avatar for Salem
0
77
Member Avatar for kebede

how can write assembly code . i mean is assembly have it own compiler .

Member Avatar for Duoas
0
76
Member Avatar for agramma

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 …

Member Avatar for Salem
0
49
Member Avatar for chico1st

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' …

Member Avatar for Duoas
0
83
Member Avatar for ashblynn02

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... …

Member Avatar for Duoas
0
5K
Member Avatar for lch07d

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!

Member Avatar for Duoas
0
107
Member Avatar for yomex4life
Member Avatar for Duoas
0
53
Member Avatar for agrawalashishku

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.

Member Avatar for Duoas
0
82
Member Avatar for toucan

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 …

Member Avatar for Duoas
0
1K
Member Avatar for sumachitti
Member Avatar for federico090

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?

Member Avatar for federico090
0
77
Member Avatar for ashblynn02

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 …

Member Avatar for Duoas
0
2K
Member Avatar for sgk26p10p07

Why does my computer reboot after i set PE bit of cr0 or run lmsw? I have set all the code and data segments

Member Avatar for Duoas
0
66
Member Avatar for sgk26p10p07

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 …

Member Avatar for sgk26p10p07
0
875
Member Avatar for sgk26p10p07

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 …

Member Avatar for Duoas
0
200
Member Avatar for eyehategod

[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?

Member Avatar for Ancient Dragon
0
62
Member Avatar for esquared

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, …

Member Avatar for Duoas
0
170

The End.