1 2 3 4 5 6 7 8 9 10

Need help in ASCII to BCD conversion

214 byte By pins4u at 2007-12-5 22:11:41
Hi,<br/>Can anyone please help in converting the ASCII code to BCD using the assembly language. I am new to this language and have no idea where and how to start.<br/>help will be appreciated<br/>thanks in advance.

Introduction

492 byte By Slider7 at 2007-12-4 23:57:02
I wanted to introduce myself.I currently program in assembly using masm for 32 bit apps. I used to write in C and C++ but decided I didn't care for the code bloat. It is harder in assembly, but the speed and size are worth it to me.I do still write and maintain 16 bit code as well. Most of it s...

Multiply/Div with the LC3 ISA?

308 byte By Dyno247365 at 2007-12-4 10:39:21
The ISA are: http://highered.mcgraw-hill.com/sites/dl/free/0072467509/104653/PattPatelAppA.pdfI want to know how to multiply a bit by 2 to shift it left, divide it by 2 to shift it right and store the bits that extend out to restore them at the bottom again, shifting the bits in a circle....

help!whats wrong with this code?

1136 byte By v1ru5 at 2007-12-3 19:25:50
#Output format must be:#"answer = CAGEKI"############################################# text segment ############################################# .text .globl __startmain:#------Start Cut--------la $a1, chararray # &chararrayli $t4,3loop: lb $t0, 0($a1)lb $t1, 1($a1)sb $t0, 1($a1)sb $t1, 0($a1...

Help w/ Disk Read Code

3684 byte By 3mu180r at 2007-12-1 0:34:56
Hey, I am trying to follow along with an old p norton book on 8088 IBM PC Assembly programming and the book builds a disk viewer and I have written the first half and at this point you should see a dump of the first 16 bytes of sector 0 and instead, nothing happens and the application just hangs the...

DOS 16 bit application to call a Win32 DLL.

305 byte By telghali at 2007-11-29 14:56:27
I am trying to get a DOS application (16 bit, written in assembly with TASM) calls my Win32 DLL exported functions. I am new to windows system programming, but I think that Generic thunks will do the job. I am wrong? If not could some one help me with steps to follow, hints etc.Thank you in advance,...

Array Help

2233 byte By utcguy at 2007-11-27 0:19:24
I am trying to get this program to work but all i get is a blank result and would like to know what I am doing wrong. Can you please point out what is wrong with it? Any help would be greatly appreciated. i have created these subroutines to find the min & max elements in an array. i am not sure if i...

c to mips conversion

325 byte By agramma at 2007-11-25 11:55:29
hi , 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 stored at registers $8 and $9($t0 and $t1)...

LC3 help

157 byte By beenhang at 2007-11-25 11:55:17
I need help programming in LC3 that use the sieve of eratosthenes algorithm which basic-ly you print out prime numbers but then number have to b 2 though 99

16 bit code, shifting pages in dos, beginner

1650 byte By ninjikiran at 2007-11-25 11:47:53
Alright I am currently writing a program to make a calendar as a project, to which using the ascii table to make borders and the such. So now I have a month completed, now I need to make a keyboard input to shift between a month foward and a month backwards. Like when the program loads it will sho...

Clear the screen in MASM?

487 byte By Sivakk at 2007-11-25 11:47:26
Anyone got the DOS call needed to clear the screen entirely and move the cursor to the very top so you can start up there?Also, is there a way to clear only a certain part of the screen?I've found a few through a search, but they're all for FASM or TASM or pretty much anything that ISN...

GAS / relative jump

2251 byte By stsm at 2007-11-25 11:43:12
hello,i'm wondering how a jump to a relative address looks like for gas/gccjmp 0xcwill jump to absoute address 0xc instead of jumping just 12 bytes forward. whats's wrong here and how does it look like correctly in AT&T syntax to jump N-bytes forward/backwardusing: pentium-m, linux 2.6.21....

Please help

774 byte By ff4930 at 2007-11-25 11:39:18
.textmain: la $a0, prompt_msg #load the address of the prompt_msg into $a0 li $v0, 4 #code 4 to print the string using syscall syscall #do the syscall(prints the message) li $v0, 5 #get input syscall #execute...

beginer help needed

14 byte By mikeneedshelp at 2007-11-25 11:35:43
figured it out

help, check my code!

4008 byte By pengait at 2007-11-25 11:34:01
here is my code... .model small.386.stack 200h.datamsg1 db 13,10, "This is a program to perform logical operations $"msg2 db 13,10, "on binary, $"msg4 db 13,10, "Enter first data(16bit ): $"msg5 db 13,10, "Enter second data(16bit): $"msg7 db 13,10, "Select operation: $"msg8 db 13,10, "1-XOR 2-XNOR...

Beginner Assembly help

744 byte By ff4930 at 2007-11-25 11:32:42
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 loop to figure out the max and min values.1st loop will go 8 times...

Linker Error With BCC32

1300 byte By utsavgupta at 2007-11-25 11:32:07
Hi,I wrote a simple assembly program and i am trying to interface it with C.I have compiled my c++ driver with BCC32 and the assembly program with NASM (32 bit). Now while linking i am getting this error message:Unresolved external 'asm_main()' referenced from C:\driver.objWell here is my...

help in convert hex to bin

762 byte By pengait at 2007-11-25 11:26:40
thanks for reading this tread.first of all, im trying to do a logical calculator that doing a XOR operation.the program will do;1. insert 2 input, 8 bit(1byte) from user (binary)2. xor the input3. display the result in binarythe main problem that i have is to display the result in binary.problem;-th...

need help in adding two 64bit numbers

763 byte By yeahdude at 2007-11-25 11:23:27
good day guys,i need your help with this, a program that adds two 64bit numbers and stores at the memory location GAMMA. The first 64bit number is located at the memory location ALPHA whle the other 64bit number is located at memory location BETA..i got some hint with my friend's book, i think...

Calling BIOS Services

1330 byte By gabirata at 2007-11-25 11:19:12
I'm trying to update some structures on DMI Pool Data according with the DMTF specification to SMBIOS. I'm trying to use the 52h function of the BIOS. The specification has the following code showing how to call that function in assembly. Then I would like to know what is "entryPoint" in...

need some help - random values

217 byte By hoppo at 2007-11-25 11:18:53
I searched in some helps, but I still have no idea hove to at my sign change value of register BH (or another one) randomly and as many times during program as it will be neccesary<br/>can you give me some hints?

how to choose the destination address for reading sectors from drive?

332 byte By someuser77 at 2007-11-25 11:12:49
Hello,I am using INT 13h AH=02h ( http://en.wikipedia.org/wiki/BIOS_call#INT_13h_AH.3D02h:_Read_Sectors_From_Drive) to read sectors from a drive to the memory, and I was wondering how one should pick the target address? Are there any rules? Do I just pick a number from 0x0000h to 0xFFFFh and use it?...

I dont understand the Interaction Between CPU and Devices. Can someone explain i

628 byte By tgwdnghn at 2007-11-25 11:12:05
Hello- I'm entirely new to assembly and such, and I have several questions regarding the Interaction Between CPU and Devices.How does the CPU communicate with various devices? Hows does it see if a device exists? What organization or standard, de facto or otherwise, determines how the CPU inter...

mips addition

105 byte By pdunning at 2007-11-25 11:11:32
how do I add two 64bit integers using the 32bit mips instructions?<br/>Any help would be appreciated

need help with ascii to hex conversion

476 byte By yeahdude at 2007-11-25 11:07:47
hi good day,i'm having a problem with ascii to hex conversion. please someone help me with coding. i've seen iviggers code and man you're good at it. thanks. and it answers my problem.but my other question is, that can i have a more simple code of ascii conversion to hex. i need a sim...

fastest way to put a string on the screen?

852 byte By someuser77 at 2007-11-25 11:07:43
Hello,I am writing an assembly proc to put a text string on the screen without using int 21h and I'm looking for the fastest way to do it.These two procedures are doing the job, but I want to know which one is faster, and maybe there is a faster way? The only specification is that it needs to r...

Assembly Addition

225 byte By taboonch at 2007-11-25 11:05:41
I made a program that adds 2 hex numbers in 16-bit. I was wondering if I could use the same code to add 64-bit hex numbers. What changes should be made to my code?? :D<br/>Attached is my code for the 16-bit addition. :)

mcr command?

73 byte By ideru at 2007-11-25 11:03:45
Does anybody knows the definition or description for this command?<br/>:o

HELP: assembly & C linking woes....

879 byte By andrewwan1980 at 2007-11-25 11:02:03
I am having problems linking an assembly object with my C object files. Am getting:Linker Warning: DOSSEG directive ignored in module asm.asmLinker Error: Undefined symbol _ASMClsV in module main.cLinker Error: Undefined symbol VADDR in module asm.asmIn my asm.asm file I've got:DOSSEG.MODEL hug...

CanSat code..

445 byte By rehanvivek at 2007-11-25 11:01:13
Hi, I am a new user here and I dont know whether this is the right forum to this ask questions regarding CanSat. Anyway I need to acquire a code for the CanSat. My kit is the Japanese version which has the H8/3069 Microcontroller. I need to find the code for the accelerometer in order for me to inse...

TAK(x,y,z)

1788 byte By GirlDani2005 at 2007-11-25 11:00:50
Hey I am currently working on the Recursive Takeuchi function with three parameters in Protected mode. I am not sure I am working in the correct direction. Could some one please give me some guidance?the code I have so far:title Lab2.asm ;Recursive Takeuchi function with three parameters; By: [Dani...

assembly

76 byte By tirror69 at 2007-11-25 11:00:29
need help...what codes should i be use if i want to input and output number?

[RESOLVED] Converting hex to string and vice versa

177 byte By taboonch at 2007-11-25 10:58:51
How do I convert a string to hex format? I'm thinking that I should use the ascii but I don't know how to read each character from a string entered. I'm so stuck.

MIPS printing integer problem

508 byte By -EquinoX- at 2007-11-25 10:55:33
Okay so say I have an array which is like this:.datavalues: .half -17 .half 16 .half 153and I want to print it as-1716153How do I do this?? If it is stored in a 4 byte of integer then it would be very easy to do, but not it's stored as a 2-byte integer. In a 4 -byte integer I ju...

Dumb newbie question about LEA instruction

636 byte By bullman at 2007-11-25 10:54:18
I'm looking at some Visual C++ generated code (trying to work out why WinDbg won't display member variables properly). In the code I see - lea ecx,DWORD PTR[edi+12]Could somebody explain what this does? I know I could plough through the Intel Assembler manual, but I was hoping for a qu...

number of clock cycles in assembler

1090 byte By chrispetitchris at 2007-11-25 10:53:58
Hello, I need to get a (rough) estimation of the number of clock cycles for a program I wrote. The program is mainly composed of XOR and 1 bit-leftshift on 1024 bits words.Here is the code in C:--------------------#define UL unsigned longtypedef UL BIGINT[32]; // a[0] is the less significant word (...

i need tlink.exe

321 byte By yeahdude at 2007-11-25 10:50:58
good day everyone!.. does anyone have tlink.exe? can i ask to have that if it is alright? my tlink.exe doesn't work, or can i ask what kind of error is this, a so called "Failed to locate protected mode loader <DPMILOAD.EXE>" is appearing after i type the command "tlink filename".. pls i...

Correct source filename extension

642 byte By John E at 2007-11-25 10:45:47
Does anyone happen to know the correct filename extension to use if I want to compile x86 assembler instructions using the Linux gcc compiler? For example, under MSVC++ I'd expect the source file to be called "whatever.asm"I've been sent some x86 source files (which supposedly compile unde...

Assembler instead of Visual Basic 6.0?

575 byte By machaeroguy at 2007-11-25 10:43:48
I have a load cell digitizer streaming data to my CPU's RS-232 port at 9600 baud.Lately, I've had some wierd problems opening and closing the ports using the MSComm control and Visual Basic 6.0.My supervisor says I should find an Assembler that can interface with VB 6.0in order to control...

How can I get into Assembly Programming?

250 byte By goatslayer at 2007-11-25 10:37:44
I would like to try to learn assembly language, do you have any tips about how to get into it?<br/>- Online/Free tutorials<br/>- Tools I need might be able to get hold of (i.e. free software on the net)<br/>- What challenges might I come across?

Using the cmp instruction correctly.

1425 byte By YourSurrogateGod at 2007-11-25 10:31:45
Using GNU assembler v. GNU assembler version 2.17.50 (i486-linux-gnu)Intel machine that's P4 or more..section .datavalues: .int 105, 235, 61, 315, 134, 221, 53, 145, 117, 5.section .text.globl _start_start: nop movl $values, %esi movl $9, %ecx movl $9, %ebxloop: cmp (%esi), 4(%esi) jge skip xch...

conversion from unsigned __int64 to double in assembler

1826 byte By myhanguk at 2007-11-25 10:30:55
Hi...I am faced with the VC++ limitation that generatesCode:error C2520: conversion from unsigned __int64 to double not implemented, use signed __int64I have found on the Internet that the conversion can be done by adding an assembler module in my project. The link to the article is http://lists.matr...

MAPLAB question

878 byte By MEversbergII at 2007-11-25 10:27:50
I'm working on my Associates in Computer Science, and the school has required me to take a course in Computer Architecture. It's an online course ( sadly ) that seems to center around the PIC Micro controller (which is on backorder, joy.). To teach the class, the instructor (who is also...

Hangman in Assembly

1844 byte By izuma at 2007-11-25 10:25:21
I am currently doing an assembly program on hangman.I have an external data file (word.txt). I am already able to access the words in my data file although I dont know how to access the words line per line or should I say word per word. For example,redyellowbluehow am i suppose to access yellow.. or...

NASM confusion

624 byte By Drecver at 2007-11-25 10:24:33
Hello, I'm interested in starting to learn ASM, but have only a bit of experience with C++ in Dev-C++. I understand assembly is not a good beginner language, but I would like to learn lowest level languages and work higher up. Thing is, I'm confused about how exactly I work the compiler,...

recomend a book plz

227 byte By g3RC4n at 2007-11-25 10:19:53
i really want to learn assembly but i just can't find a decent tutorial online. is there a book which is "THE" book on assembly langauge?<br/>i know c++ btw so it doesn't need to be a really basic assemably book

64 bit issue on windows...

866 byte By kdar20 at 2007-11-25 10:16:58
Hi,I am currently porting 64 bit application with C and Assembly code (x86-64) from Linux to windows. I am using Microsoft C-Compiler 2005 and Yasm for compiling C and assembly code respectively. I have modified the assembly files as per the 64-bit ABI specification for windows and i do get expected...

Conversion???

80 byte By codeexpert123 at 2007-11-25 10:13:58
I have to convert a number (0,..,9999) to a word. Can anyone help out with this?

help Me Please :(

224 byte By obaid at 2007-11-25 10:12:56
Hi,<br/>i hv a problem in intel 80x86 assembly language programming<br/>my Question is: <br/>Add these two Character<br/>22<br/>+88<br/>--<br/>100<br/>this program is in REAL MODE (16 bit programming)<br/>ThankYou.

Getting a file handle without opening a file.

472 byte By axle at 2007-11-25 10:02:12
Hi everyoneI was wondering if anyone knows a way to get the handle to a file without actually opening the file. Basically I need to modify a file without changing the "LastWriteTime" and "LastAccessTime" fields of the Win32_Find_Data structure. What I'd like to do is save these values, but of...