2,878 Topics

Member Avatar for
Member Avatar for annitaz

Write a program in PC assembly language to execute the following code: b := 0; a := 0; read c (c must be between 5 and 9) while ( (a+b) < c ) do begin b := b+a; a := a+1; end;

0
74
Member Avatar for annitaz

Write a program in PC assembly language to execute the following code: b := 0; a := 0; read c (c must be between 5 and 9) while ( (a+b) < c ) do begin b := b+a; a := a+1; end; I wrote the followng but something is wrong …

0
50
Member Avatar for annitaz

1 ; The program must be keyed in exactly as is given here. 2 3 4 org 0x100 5 bits 16 6 00000000 E90900 jmp start ; Start program execution 7 00000003 42524F574E20464F58 char: db 'BROWN FOX' ; Please key in exactly as shown, 8 ; with a space between …

Member Avatar for tesuji
0
117
Member Avatar for embeddedravi

Creating embedded system based virtual Text Display. use 9V battery for supply video : [url]http://www.youtube.com/watch?v=tVU-1ligVYU[/url] source here : [url]http://www.embeddedravi.com/forum/viewtopic.php?f=2&t=12[/url]

Member Avatar for embeddedravi
0
85
Member Avatar for rexins

Hallo, MIPS works with words of 32 bit. But for universitiy, i have to add two 64 bit Integers numbers. first of all, my idea was that i split the numbers and store them in two register. But that's only a theoretical idea. I have no idea how to realize …

Member Avatar for tesuji
0
2K
Member Avatar for nehasfun

Please help me to write the following program in 8085 assembly language. Only guidelines required. 5 numbers are stored at consecutive memory location. Arrange them in ascending order and store them in another location.

Member Avatar for mahul000
0
180
Member Avatar for Madawar

Hi, Am a self teaching Newbie Assembly programmer :) Still in the theoretical Stages. My question is.... [B]According to the book am reading When you convert 254(decimal) to hexadecimal you get 0FEh. And when you convert -2(decimal) to hexadecimal using two's complement you get OFEh.[/B] When i do it manually …

Member Avatar for Madawar
0
4K
Member Avatar for wayn3san

I want to write an assembly program to convert Hexadecimal to Binary in 8086 assembly language. I am using Winasm as my compiler. However i have no idea how to write this code. Can anyone shed some light? thanks in advance!

Member Avatar for wayn3san
0
11K
Member Avatar for cmsc

we were asked to make a program that adds two digit numbers. I was ableto scan and add the input numbers but I have trouble doing the 'carry' part. i can't divide the sum of the ones place integers by ten. what's wrong with this code? : [CODE] mov al,bl;move …

Member Avatar for cmsc
0
206
Member Avatar for funfullson

hi dears. I am using Emu8086. I need to generating an array of random numbers. Are there any ready procedure or intrupt? if there are not, how can I do it? thanks.

Member Avatar for Tahir007
0
6K
Member Avatar for dansnyderECE

I'm trying to replace some MIPS II instructions using MIPS I - namely the branch likely instructions. I'm having difficulty deciding how to do this. Assume that the branch delay slot is implemented. First off, a branch likely is an instruction that when taken, executes the delay slot instruction whereas …

Member Avatar for dansnyderECE
0
123
Member Avatar for UtaChan

I got a question that most likely will appear in tomorrow's test Well the problem is I have a physical adress of 12345h and I need to get something from there into some variant at the size of 1 byte, not that it matters...the thing is I dunno what to …

Member Avatar for tesuji
0
155
Member Avatar for avarionist

Lods byte ptr ds:[esi] ;i know that it loads a byte that is a pointer my question is " is the pointer ds with esi as an offset or is it the other way around or am i just plain wrong" ?

Member Avatar for avarionist
0
346
Member Avatar for Flux123

Hi There, I'm trying to learn a bit of assembler and have got the grasp of the majority of the basics. However I'm struggling to allow a user to enter a string, terminated by a null character when the user hits carriage return. I'd also like to be able to …

Member Avatar for NotNull
0
575
Member Avatar for DrakeMagi

been googling for 5 days. The library has the book check out for the next 16 days. I'm using debian lenny linux , have nasm installed . I'm looking 1:1 assembly programing. No high level. to me no point in learning assembly if you going to use high level commands. …

Member Avatar for gerard4143
0
180
Member Avatar for dansnyderECE

I don't understand what the issue is here. Here is the line in question: [CODE]beqz $t0, main[/CODE] and I get a syntax error here. Also, why is it that I cannot use the $at register? Also, I get a syntax error fr this line: [CODE]move $a0,$v0[/CODE] Whats wrong here?

0
79
Member Avatar for frantonio

I am trying to write a program in Assembly (IA-32 architecture), that reverses the string input from the user. I've tried to use push and pop, but I can't seem to get any output. Here is the code. Any Suggestions? INCLUDE Irvine32.inc .data str1 BYTE "Enter a string of characters: …

Member Avatar for wildgoose
0
3K
Member Avatar for wekesa philip

I am trying to read a digital output from a conversion from the ADCH register but i am being told that the ADCH register is invalid. Now, How can I transfer the contents of ADCH to a general purpose register. Here is the code that I used. It is written …

Member Avatar for wildgoose
0
87
Member Avatar for satish.paluvai

1)A positive going pulse which is always generated when 8085 MPU begins the machine cycle. a) RD b) ALE c) WR d) HOLD 2).when a ----- instruction of 8085 MPU is fetched , its second and third bytes are placed in the W and Z registers. a) JMP b) STA …

Member Avatar for peter_budo
-1
84
Member Avatar for dansnyderECE

I'm trying to compile an assembly file (.asm or .s) from a c++ file to be used in SPIM. SPIM requires that the file be in MIPS32ABI and for MIPS I ISA. My g++ compiler is not working well and I was wondering if there were any compilers out there …

0
88
Member Avatar for pupspark

If I assemble a AT&T syntax program in GAS with DOS system calls, will that work similarly to linux assembly, or will I not be able to make that work? Because I like AT&T syntax. And DOS.

Member Avatar for MosaicFuneral
0
60
Member Avatar for makako nido

Hi everyone! I'm trying to learn assembly x86 using tasm but a doubt stoped me. I need to create a file and copy an array of characters for him. I know I need to use 3Ch to create, 40h to write and 3Eh to close him but I can't implement …

Member Avatar for Mattye134
0
165
Member Avatar for eniwe

The lines of code below are borrowed from the print media. My focus is on the assembly; so by making use of these lines, iam trying to understand certain features of the assembly that are unclear to me. I was able to follow a few lines of code, and then …

Member Avatar for Mattye134
0
207
Member Avatar for skyir
Member Avatar for dansnyderECE

I'm attempting to test an assembly file compiled from my c++ program and I keep getting errors. My program is a simple "hello world" but no matter what I try and what variation of assembly files I try I can't get a solid run on anything bu the exception.s that …

Member Avatar for dansnyderECE
0
932
Member Avatar for Diamondo25

Hello, I'm wondering why this command "mov eax, [eax]" changes the content of eax from rubbish to a readable string in the following code: [CODE] ___:004160CB arg_0= dword ptr 4 ___:004160CB ___:004160CB mov eax, [esp+arg_0] ___:004160CF push esi ___:004160D0 mov esi, ecx ___:004160D2 cmp esi, eax ___:004160D4 jnz short loc_4160DA …

Member Avatar for wildgoose
0
161
Member Avatar for godfather2007
Member Avatar for R3k

Ok, Hey guys. I was wondering how I would come about performing basic addition in GCC using inline Intel syntax assembly. I have a way of doing it in AT&T but in my opinion I just prefer using Intel generally. Ok, My AT&T code is this: [CODE=C]#include <stdio.h> int main() …

Member Avatar for R3k
0
540
Member Avatar for overlordlink

Ok I was watching a you tube video and this guy had completely remade the portal still alive console thing and he had all the code posted on his site. Now of course the only problem with that is that i don't know what to do with it because it …

Member Avatar for wildgoose
0
140
Member Avatar for blah32

Does anyone know of a script or program that will convert A86 written assembly programs to any other type of assembly (such as NASM or AT&T for GCC)? I have searched online and haven't found anything very solid. Let me know, thanks.

0
56

The End.