2,889 Topics

Member Avatar for
Member Avatar for beckyzammi

Hey guys, i wrote a program in assembly for the 80C51 and it worked but now i have to write the same one for the PIC16F84A in assembly language, and it just wont work. Can someone figure out what mistakes i did? This program controls one 7-segment display to count …

Member Avatar for DENE@DANI
0
221
Member Avatar for alcapone11

hi, i'm beginner in assembler, i'm just start study this language... please can someone explain me, what do this two functions? cbr flags, (1<<pressed) ;Clear status flag sbr flags,(1<<pressed) ;Set status flag please if you insert example, it will be only better...:)

Member Avatar for alcapone11
0
94
Member Avatar for leatheag

Hi guys, Im new to MIPS and have no idea how to do this. Just need to convert an integer to a character. Thanks

Member Avatar for leatheag
0
907
Member Avatar for sanzilla

Write Your First Application On Win32 ===================================== What is Win32 :-) win32 is an plactform that like J2ME and J2SE means that it have it's memory model and have a architure and have those Applications programming interfaces to call to the operating system . Like the APIS in the java …

Member Avatar for Salem
0
1K
Member Avatar for TheRekz

I am asked to add a madd(multiply and add) instruction to the standard single cycle datapath. I am quite confused on how to achieve this... any idea? Below is the description.. Description: The 32-bit word value in GPR rs is multiplied by the 32-bit word value in GPR rt, treating …

0
105
Member Avatar for ipride

anyone help me please I need to convert this C++ to assembly int number = 0; int targetValue = 1; int nbrTerms = 0; cout<< "enter number" cin >> targetValue; while( nbrTerms <= targetValue) { nbrTerms = nbrTerms + ( targetValue * targetValue) targetValue ++; } cout<< "total terms: "nbrTerms; …

Member Avatar for gerard4143
0
114
Member Avatar for nikolaosgeo

I must give it 02/03/10 night please help.Sorry for my english A mips programm that take from user a string S with legnth maximum 20 char which must be (a-z),(A-Z) ,(1-9) if i give something out of these to print mesg error and if i give something over 20 char …

0
42
Member Avatar for ipride

I need help with my assi. I don't even understand what the questionis . Q. write a program that will input an integer valve and calculate the value of nBr where nBr is the smallest integer such that 1^2 + 2^2 + 3^2 +....... nBr^2 >= value ( these are …

Member Avatar for ipride
0
84
Member Avatar for fares_silawi

Respected members: I've been asked to write and run an assembly code to print my name in the middle of a 80X25 Text screen such that, each character in my name will show different background, foreground colors also some characters will be blinking with intense light! the problem is that …

Member Avatar for Goalatio
0
3K
Member Avatar for alzamabar

Hi all, I'm an Assembly newby and am studying Jeff Duntemann's book on programming Assembly on Linux. As much as I love Assembly and I have to learn it if I want to do anything significant in IT since it's part of a journey, I am finding difficult to get …

Member Avatar for Jeff Duntemann
0
275
Member Avatar for angelicarose

how can i make a program that plays do-re-mi?? please help me.. tank u

0
44
Member Avatar for bd338

Hello everyone! I, once again need your help :). I've expanded my hanging boot loader, to a hello world boot loader. Or, at least that's what it's supposed to be, when I get it running. This is my Assembly code: [CODE] [bits 16] [org 0x7c00] message db "Hello, world!", 0 …

Member Avatar for gerard4143
0
216
Member Avatar for liljazz2007

I need help where it says "DEFINE YOUR CODE" Ive defined the 12 out of the 20 lines required but Im not sure how to do the remainding parts. Please help. Thankyou [CODE] ; Multiplication and division (integer division) using addition and ; subtraction in SRC assembly language. ; If …

0
65
Member Avatar for johann_2

Hello, Could someone please look at this code and tell me why it is not working. I am trying to retrieve the number that is stored in the "Hundredths" section of the system time and output it to the screen. Thanks. [code] .MODEL SMALL .286 .STACK 100h .DATA Typed DB …

Member Avatar for NotNull
0
229
Member Avatar for Hanyouslayer

I have been working on converting this C/C++ Program as an assignment for my x86 assembly class, and for the love of anything good I can't figure out what is wrong. It doesn't have a problem when assembling or linking, but when I run it, it gives me: CS:0576 IP: …

Member Avatar for NotNull
0
196
Member Avatar for Kurtz

Hi, I just started working with the LC3 or rather programming. I was wondering how to create a reverse string. For example, I input a string saying "I love LC3" and I need to reverse this statement in the output. I know I will be using the LIFO of Stack, …

0
46
Member Avatar for bd338

Hello everyone! I've written this boot loader, using NASM: [CODE] [BITS 16] [ORG 0x7c00] jmp $ times 510 - ($ - $$) db 0 dw 0xaa55 [/CODE] I know, the code is VERY simple, but I just want to know how I could run it on my computer? I've assembled …

Member Avatar for bd338
0
150
Member Avatar for zacory

After a heated arguement with a friend over what he calls "bloat-ware" I tried to find how much of my file size is unneeded dribble. I found out that tasm produces the smallest files for simple programs and then I looked into more detail as to that. It appears that …

Member Avatar for Salem
0
78
Member Avatar for clag

MY friend told me that this was something neat so I've been working on it for a while but I can't see it. He gave a set of machine code and said it'd be interesting and that I could see the picture. The set were: [CODE]0x3c111001 0x3c011001 0x34320006 0x82290000 0x2128002a …

0
52
Member Avatar for neigyl_noval

I am in Windows XP and this has been my problem whenever i use graphics mode in assembly. We are required to use a TASM assembler. Here is the problem: Whenever I run the program, it always runs on full screen. Is there a possible way to restore the size …

0
67
Member Avatar for katjaschmidt

Hello Assuming we got the following memory dump: [CODE]0x80004a3 <main+19>: call 0x8000470 <function> 0x80004a8 <main+24>: addl $0xc,%esp 0x80004ab <main+27>: movl $0x1,0xfffffffc(%ebp) 0x80004b2 <main+34>: movl 0xfffffffc(%ebp),%eax[/CODE] So when the call of <function> is finished, i.e. the function returns, the next Instruction is at 0x80004a8 (which the IP pointed at). If we …

Member Avatar for katjaschmidt
0
108
Member Avatar for walqas

Hi, I have got a web solution in ASP.net and i am trying to get the product assembly information from within another DLL library that is used by the pages. So basically, [myPage.aspx] -> [myDLL.method()] i want [myDLL.method()] to be able to get the assembly info of the pages project …

Member Avatar for kvprajapati
0
118
Member Avatar for JONZ

using this values DW 1234,1122,7FFF,8000 how can you define a 16-bit pointer variable that contains the address of the array?

Member Avatar for NotNull
0
61
Member Avatar for wApPy
0
45
Member Avatar for Giering
Member Avatar for bd338

Hello everyone! This is the code for my A86 Assembler: [CODE] jmp _executor _executor: mov ah, 00 mov al, 18 int 10h end _executor [/CODE] It Assembles fine, but when I try to run it, I get this dialog popping up, saying: [QUOTE] This system does not support fullscreen mode. …

Member Avatar for Harko33
0
201
Member Avatar for bd338

Hello everyone! I would like to know if I'm calculating memory addresses right. Let's say I would like to calculate the address of 0BC9:0000. Would I then take 0BC9 in decimal (3017) and multiply it by 16 and then add 0000 to it?

Member Avatar for Salem
-1
64
Member Avatar for clag

Hi, I wanted to convert this code into assembly but I'm having trouble. Here's what I got :] [CODE]int b = 0, x; while (x != 0) { b += ((x & 03) == 2); x >>= 1;[/CODE] I believe this is just a basic instruction to count the number …

0
47
Member Avatar for liljazz2007

ANY HELP YOU CAN PROVIDE WILL BE GREAT. Here is the code Im trying to convert. This is my 1st time hearing about SRC Code and my teacher isnt being a big help. Please help in any way you can. Here is the code: int a = -5; int b …

Member Avatar for Nick Evan
0
243
Member Avatar for liljazz2007

Here is the code Im trying to convert. This is my 1st time hearing about SRC Code and my teacher isnt being a big help. Please help in any way you can. Here is the code: int a = -5; int b = 3; int c; if (a == b) …

0
62
Member Avatar for Nicholas_Roge

It's actually not help with the code, it's help finding an assembler and linker that will work on 64 bit windows 07... Not only that, but I'd like to be able to be able to debug it. But since windows dropped debug from 64 bit. Any help? P.S.: I have …

Member Avatar for gerard4143
0
97
Member Avatar for bd338

Hello everyone! If I try to Assemble the following with MASM, I get this error: Code: [CODE] .model small .stack .data message db "Hello world!", "$" .code main proc mov ax,seg message mov ds,ax mov ah,09 lea dx,message int 21h mov ax,4c00h int 21h main endp end main [/CODE] And …

Member Avatar for bd338
0
774
Member Avatar for GinoScientist

Hi all, I am new to this forum, I am hope somebody can point me to the right direction if I am asking in the wrong place... I have a lot of code written for the ASM286 compiler, which I am trying to run somewhere. Because it is a complex …

Member Avatar for GinoScientist
0
134
Member Avatar for xerreck

Here is the description of my project: write a program to produce an "addition table." This table should input two small int8 values from the user. It should verify that the input is correct(i.e., handle the ex.ConversionError and ex.ValueOutOfRange exceptions) and is postitive. The second input value must be greater …

Member Avatar for xerreck
0
135
Member Avatar for TheTechNoob

Hello. I'm just scratching the surface of Assembly for the first time and am trying to figure out how to manipulate arrays. It's my understanding that arrays live in RAM, and RAM ONLY. So you must load the piece of the array you want to mess with into a register, …

Member Avatar for nezachem
0
100
Member Avatar for NotNull
Member Avatar for NotNull
-1
419
Member Avatar for fizzywix

I'm having trouble coming up with how to find the median in assembly (x86) for some beginning programs. I have an idea, but I'm thinking there must be a much more compact way to do this. Simple algorithm for what I had in mind: given a list and length of …

0
53
Member Avatar for Hanyouslayer

I just started assembly programming, x86, and I am kind of getting the hang of it, but I am still far from becoming great at it. It's interesting to see what I do in Java from a different view. Anyways, for the life of me, I can't figure out what …

Member Avatar for Hanyouslayer
0
173
Member Avatar for scott__

hello, this is my first post on this forum! i have a strange bug that i get when using the player/stage project. I have compiled it with the MinGW compiler and it works fine on my vista laptop. However, on a lower spec XP PC it segfaults. Using GDB, i've …

Member Avatar for scott__
0
172
Member Avatar for chrisname

Hi :) I'm writing a basic 2 stage bootloader (I actually do plan for it to work, it's not just a hello world loader) and I've migrated to nasm. I find it much easier to use, etc. etc. Anyway; I'm using the times directive to get the program to 512 …

Member Avatar for chrisname
0
2K
Member Avatar for Behi Jon

Hi, How can I point to the end of a string ? We have ACTULEN, the length of string . For example : LEA SI, KBNAME + ACTULEN KBNAME is name of our string . But this is not work . Thanks .........................

Member Avatar for NotNull
0
114
Member Avatar for linuxdude

Hello, I am beginning learning intel assembly. I am taking simple gcc programs and looking at the assembly. All gcc outputs have a line similar to: mov DWORD PTR [ebp-4] that I can't figure out. For example [code] int main(void) { int x = 5; return 0; }[/code] gives me …

Member Avatar for NotNull
0
4K
Member Avatar for operator494d

Hi,I'm new to assembly but i cannot figure this out NEG BYTE [BX] ; Negates byte quantity at DS:BX NEG WORD [DI] ; Negates word quantity at DS:[U]BX[/U] first line I understand but how did he get BX register in second line?! thanks in advance

Member Avatar for NotNull
0
84
Member Avatar for destruct0r

Hi! I would like to use timer in my code. And i don't know how to build a real clock. I wish control my loop with this timer. In every seconds the loop do something. I use OS Linux Ubuntu and NASM. Very sorry about my bad English. I still …

0
55
Member Avatar for gianx80

Hi to all! I'm writing an assembly program that at a certain point calculates a square root, then it has to verify if the result is an integer (i.e. 2.000) or a "true" floating point number (i.e. 2.456). How can I do this in Assembly language? P.S. The next week …

0
68
Member Avatar for bahare

hi every body could I color a page with out interrupts ??? If yes , how ????

Member Avatar for sDJh
0
57
Member Avatar for nunos

Given a vector of bytes with length multiple of 8, how can I, using mmx instructions, convert all 2's to 5's, for example? [code] .data v1 BYTE 1, 2, 3, 4, 1, 2, 3, 4 [/code] Thanks.

Member Avatar for nunos
0
108
Member Avatar for helinix

Hello everybody First thanks for your help and the good forum. My question needs a little bit explanation first. I study computer science.I had a course in Computer Organization and design and we had a course about microprocessors with an assignment on 80C51 microprocessor. actually i couldn't do it well. …

Member Avatar for Salem
0
126
Member Avatar for kshetri

i am trying to start using nasm... i did som in masm.. now my problem is, i am not getting proper nasm compiler file..if anyone have their collection working..i would like to get that...:) you can post over here or email to my id [I]<<snip>>[/I]

Member Avatar for gerard4143
0
78
Member Avatar for iamsmooth

Hi, I'm a second year computer science major. Just started learning about assembly programming. Anyways, I was wondering if there was a good IDE that people usually use to program in SPARC, I've looked at the plugins for netbeans and it doesn't seem to support it. I also have looked …

0
73

The End.