2,889 Topics

Member Avatar for
Member Avatar for SceneZx

Hello, Ive just started programming in Assembly and im having a little trouble with the language itself. I wanted to make a program that takes two positive integers and adds them together, and outputs a message if theres a carry over, but i have no idea how to go about …

Member Avatar for BestJewSinceJC
0
144
Member Avatar for j_cart007

here is my Caesar cipher code, can u pls have a look at it and correct me if i'm wrong. [code] AREA text, CODE SWI_Exit EQU &11 SWI_WriteC EQU &0 ENTRY ADR r4, hello ADR r3, alpha ADR r2, key loop LDRB r0, [r4], #1 STRB r0, [r4], #1 CMP …

0
90
Member Avatar for laconstantine

I started with masm32 and i have some questions I read this [QUOTE] Under Win16, there are two types of calling convention, C and PASCAL C calling convention passes parameters from right to left, that is , the rightmost parameter is pushed first. The caller is responsible for balancing the …

Member Avatar for laconstantine
0
234
Member Avatar for LangTuHaoHoa

For Example .I have a function that code in C++ : [CODE] void MyFunc(int s) { struct itemRec { int code; int index; } bItem; bItem.code = 0x0000000B; bItem.index = s; __asm { push eax push edx mov ecx,0x00625388 push 00000000h lea edx,bItem push edx push 00000016h mov eax,0x00487273 call …

Member Avatar for LangTuHaoHoa
0
388
Member Avatar for Joonas

Hello All! Here is code of Space Invaders game. It is x86 Assembly Enjoy! [code] ;;; $RCSfile: part0.asm,v $ $Revision: 1.8 $ $Date: 2005/03/09 15:31:55 $ BITS 16 ; outputin koko bitteinä stacksize EQU 0200h ; pinon koko videobase EQU 0a000h ; starting address of video memory delay EQU 150 …

Member Avatar for Joonas
0
203
Member Avatar for j_cart007

this is my code which copies 1st string into 2nd String. [code] AREA StrCopy1, CODE SWI_WriteC EQU &2 ENTRY ; mark the first instruction main ADR r1, srcstr ; pointer to first string ADR r0, dststr ; pointer to second string BL strcopy ; copy the first into second SWI …

Member Avatar for j_cart007
0
157
Member Avatar for heshangho

Hi guys, I am trying set cursor postion in the screen and print a value.But this loop gives me a unlimited loop..can anyone help me to figure out whats wrng.? [CODE] mov ecx,5 L1: mov XYPos.X, eax mov XYPos.Y, ebx INVOKE GetStdHandle, STD_OUTPUT_HANDLE mov consoleHandle, eax INVOKE SetConsoleCursorPosition, ConsoleHandle, XYPos …

Member Avatar for Alex_
0
117
Member Avatar for eniwe

Learning assembly and 'am trying to move from 16-bit to 32-bit. i have this assembly code to display a string in a message box. [CODE];tasm32/tlink32 .386 .model flat extrn MessageBoxA:proc extrn ExitProcess:proc .data head db " 'Heard melodies are sweet,",0 body db " but those unheard Are sweeter;'",0 .code begin: …

Member Avatar for eniwe
0
138
Member Avatar for tag5

:( please help me solve this assembly problem urgently: Q . write a 8086 program to store in consecutive memory locations starting from OAEO , the square of 1 to 25. note: each value in the memory must be doubled , like 1-2,2-4, 3-9 etc. please reply on my problem …

Member Avatar for MosaicFuneral
0
62
Member Avatar for Alex_

Hello everyone. I'm trying to do this in nasm under linux : [code] cmp eax,ebx jng .loop[/code] and also [code] test eax,ebx jng .loop[/code] and yet also [code] %if eax < ebx jmp .loop %endif[/code] I want to loop while eax is lesser than ebx and non of the 3 …

Member Avatar for Alex_
0
167
Member Avatar for unregistered

[CODE] GNU nano 2.0.7 File: hello.asm section .data hello: db 'Hello World!', 10 helloLen: equ $-hello section .bss section .text global _start _start: mov eax, 4 mov ebx, 1 mov ecx, hello mov edx, helloLen int 80h mov eax, 1 mov ebx, 0 int 80h [/CODE] why does this compile …

Member Avatar for unregistered
0
148
Member Avatar for Lamya

[COLOR="Green"]Hello Programmers[/COLOR] This Is My Question & the answer But .. The out put not exist i don't know what is the wrong with it [COLOR="Red"]Write a program that will take as an input 5 Capital Letters and then display on next line in small letters and in reverse order. …

Member Avatar for Lamya
0
119
Member Avatar for vddmanikanta

Sairam Everyone I have been trying to compile an OS called MuCOS -II port 80x86 on Linux. This is an RTOS for Embedded system: While doing the same it has raised these errors: 1. /Tmp/cc2VP59l.s: Assembler messages: 2. /tmp/cc2VP59l.s:1806: Error: suffix or operands invalid for `int' Can u please help …

0
40
Member Avatar for Samran

Hi all, I have written a code in assembly, assembler used is NASM. The code worked with XP 100% correctly but it is not working with Vista. Please tell me how to make it work on Vista too. In XP and VISTA both, I went to Start > Run > …

Member Avatar for sysop_fb
0
135
Member Avatar for r00ster

My friend is doing a course in computer science and needs help with a few questions considering assembly. Well at least I think it is assembly. Here goes: 1. What alphabetic character will be moved into DL if the mov dl,25h instruction is executed? 2. What is the length of …

Member Avatar for sysop_fb
0
176
Member Avatar for therealsolitare

Hey everyone, I've been getting my rear end kicked by this homework assignment. We were given the task of writing up a command line version of Othello (Reversi) in a higher level language, which I chose C++ to do so in. My C++ version of the code is working great, …

Member Avatar for Salem
0
6K
Member Avatar for Alex_

Hello, how does division works in nasm assembly language? I want to get the least important digits from a binary number. ex: 1001b /10= 100.[B]1[/B]b. The bold signed one is what i like to get. Any suggestions? Further explanation: What i want to do is convert a binary number into …

Member Avatar for Alex_
0
2K
Member Avatar for j_cart007

hi ! i'm very new to assembly and learning bit by bit but unfortunately i'm asked to write a program which encrypts a string using caesar cipher encryption method and then print that encrypted text and save into the address. i'm very hopeful that somebody will definitely solve my problem …

Member Avatar for j_cart007
0
219
Member Avatar for stuffynet

Hello there. I recently finished a 5x5x5 cube wich I control it with a PIC16F877. I managed to make a program for it in assembler but when I load it into the chip it does nothing. Did I did something wrong? I use pnp 2N2907 tranzistors for the columns (+) …

0
61
Member Avatar for legendarya49

would anyone be able to help me convert this c function to an assembler function? Any help would be greatly appreciated thanks. [CODE]void load(char x[][1000], int collum, int row, char ln) { int i =0; int j =0; for( i = 0; i < row; i++ ) { for( j …

Member Avatar for legendarya49
0
78
Member Avatar for rownak

Hi all: I wrote the following simple program to test [B]printdec proc[/B] (which was given by my professor). However, i am getting some unwanted characters after printing 20 (label val). Do you guys know why i am getting those characters. Thank you very much in advance. Ron [ICODE]%title "test program" …

0
69
Member Avatar for peedi

Hey i need help with converting Celsius to Fahrenheit. Some reason its giving me a weird output. What seems to be the problem? here is the original code [CODE] PAGE 80,132 ;=================================================================== ; ; PROGRAM LISTING 3.1 ; ; PROGRAM TO CONVERT A TEMPERATURE FROM ; FAHRENHEIT TO CENTIGRADE USING …

0
86
Member Avatar for legendarya49

11 13 7 10 XXXXXXXXXXXXX X JX AX X X XXXX XXXXBX XX X X SX X X X X XXXX XXX XXX X X X X XXXXXXXXX XX X X X X XXXXXX XXXX XX XL X XXXXXXXDXXXXX I would like to create a recursive function to recurse through …

Member Avatar for iamthwee
0
101
Member Avatar for GV1UK

Hi all. This is my first post. Basically a couple of years ago I was working on an operating system for a sound module that used the Renesas sh7727 DSP. As the years went buy I lost the source files for it. All I have left now is the partially …

0
45
Member Avatar for theduff

I am writing a program that will reverse the order of ASCII code. The user input a character and output the reverse 7 bits of it. EX: 011001 to 100110. I am trying to understand the sll and srl instructions better and how they are used because they seem to …

Member Avatar for theduff
0
3K
Member Avatar for siggivara

I want to write an x86 AT&T assembly function that compare a char-array one caracter at a time. If two characters at the same index are unequal it's suposed to return -1, else return 1. I'm going to call this function in a C code. So the function-call would look …

Member Avatar for siggivara
0
1K
Member Avatar for Alex_

Hello assemblers :) . I am trying to sort a word backwards, like this: abcde -> edcba This is my code [code] section .bss aloc resb 10 %macro print 2 mov eax, 4 mov ebx, 1 mov ecx, %1 mov edx, %2 int 80h %endmacro section .data str: db 'abcde',10 …

Member Avatar for Alex_
0
2K
Member Avatar for emreesir

Hello everybody, I am using both c and assembly (assembly is with nasm and op:Linux) in C: [CODE]typedef struct linkednode *linkednode_ptr; typedef struct linkednode{ int freq; char symbol; linkednode_ptr node; }; linkednode_ptr get_linkednode(char symbol, int freq) { linkednode_ptr r = (linkednode_ptr)malloc(sizeof(struct linkednode)); r->node=NULL; r->symbol=symbol; r->freq=freq; return r; }[/CODE] in c, …

0
47
Member Avatar for mentor07825

Hey everybody, I need a bit of help please. I need to create an 8086 application that will draw a line between two points on the screen that you click on. It's using Bresenham's line algorithm to do the calculations between the two points. I'm using Tasm and Tlink to …

0
92
Member Avatar for destruct0

Hello! I have a problem when I try to do some interrupt in assembly program. When I try to execute, executable file i get this message "Segmentation fault.". Please help? I have this problem almost all interrupts. Sorry for my bad English.

Member Avatar for destruct0
0
109
Member Avatar for hackfodder

Assembly is by far the lest abstract language I am aware of (short of getting a hex editor and punching in raw bits and bytes). I am aware that understanding less abstract topics require greater knowledge. I know it would be silly of me to ask is there a quick …

Member Avatar for orwell84
0
118
Member Avatar for Warrior4017

Hi, I am currently writing a project that will allow the playing of a game of "british squares" in MIPS. Unfortunately it is giving me quite a bit of trouble. I was wondering if there is a way to set the $ra register to the current location (actually a bit …

Member Avatar for Amirlano
0
295
Member Avatar for neutralfox

Hello, I need a little help for word multiplication, according to my notes, to multiply a word, we should put the multiplicand in AX, the multiplier in a register or memory variable and the result should appears in AX(low) and DX(high). The problem is how to get the product ? …

Member Avatar for neutralfox
0
87
Member Avatar for Alex_

Hello! I'm trying to swap some characters in this form, in Linux+NASM: abc -> cab -> bca -> abc I tried the following method [code] section .data string: db 'abc',10 strlen: equ $-string section .text global _start _start: mov ebx,1 add ebx,string mov string, [ebx] [/code] But it gives me …

Member Avatar for Alex_
0
2K
Member Avatar for tag234

Hello, ive got a quick question about changing characters within a .asciiz. Here is a snippet from the code im working with: [code] ## This is 300004D2 ## la $a0,value # Initialize the value lw $a0,0($a0) ## This is equal to 8## la $a1,count # Initialize the loop counter lw …

0
55
Member Avatar for 3ak

I want to use a PIC16F877A (I have a boot loader on it) to control the speed of an electric motor. I also want to use the PIC for a few other things not related to this problem so I want to program it in assembly for better programming control …

Member Avatar for 3ak
0
120
Member Avatar for enginer

I am completely new to assembler and I am starting to write in assembler 8086-8088 with tasm. I have the beginning correctly. I need only the coding for reading two digit numbers. So far I know that you have to multiply the first by 10 and add the second. Please …

Member Avatar for peachville
0
83
Member Avatar for dimitriz5

Please, if anyone could give me assembly code for a calculator it would be a great help . I am using mips... Thanks in advance.:-|

Member Avatar for peachville
0
176
Member Avatar for neutralfox

Hello everyone, Someone recommend me to use Microsoft Macro Assembler 8, I have already installed it, together with Microsoft Visual C++ 2005 but I don't know how to use it. Can someone guide me please, I tried to search some tutorial on the net but can't find for this program. …

Member Avatar for jen140
0
147
Member Avatar for kingregis

Hi! I probably am in the wrong place, but I'll ask anyway. I am trying to load an external CD-ROM using a Win 98 boot disk modified like below. I got this off this site and it is loading fine, however it gets to a drive assignment and gives an …

0
43
Member Avatar for jeffcia

I was just wondering if the hcs12 can add mem to mem directly, or if memory needs to first be loaded into accumulators.

0
33
Member Avatar for jeffcia

I need to convert a decimal number to hex on a Motorola 12 series. I have 5 decimal digits in separate memory locations and will need to only go up to ffff Any help would be appreciated!! Jeff C chem & phys teacher Marietta, GA

Member Avatar for jeffcia
0
84
Member Avatar for liquinox

I am trying to convert a seemingly simple function written in C into assembly. My assembly subroutine seems to work, except when it returns to main, *pCombo contains garbage. When I step through the debugger, it seems to put the characters in the right place, I suspect there is an …

0
64
Member Avatar for neutralfox

Hello everyone, I am currently learning assembly language and I am using MASM 615 but I don't like the interface, can someone recommend me a good assembler. The assembler should make the same work as MASM 615 . Which assembler is easy to use and have intellisense if possible. In …

Member Avatar for neutralfox
0
203
Member Avatar for neutralfox

Hello friends, I am new to assembly language and I want the user to input a string ... then save the string in a stack. Is there a function to get the string from the user, like getStr . Thanks in advance.

Member Avatar for neutralfox
0
181
Member Avatar for jrw0267

I am fairly new to assembly language and I am having a problem with my project. The project is fairly simple, but i am having trouble with input. I am tryint to enter in a number of unknown length 1 digit at a time (eg 16) would be 1 then …

0
91
Member Avatar for clshah2

1) Design a memory system with 4 MB ROM and 8 MB RAM. The system should use four banks of 8-bit wide RAM and four banks of 8-bit wide ROM. ROM should start at address 0x00000000. ROM and RAM should be contiguous. Use partial address decoding. Be sure to include …

0
64
Member Avatar for destruct0

Hello!!! I would like to ask anybody can help me with "interrupt 10h". I do everything correct but every time I get a message "Segmentation fault". My code is: section .text global _start _start: mov ah,00h mov al,45h int 10h When I compile the file into executable file and run …

Member Avatar for destruct0
0
157
Member Avatar for kelechi96

Hi I want to learn asm but I have Windows XP64 how do I go about learning assembeler for this operating system.

Member Avatar for NicAx64
0
179
Member Avatar for raseel

hello this is my project to convert from arabic numerals to roman one's and vice versa but i have some problems in it ,dont know what 2 do ??/so pleassse help me 2 know or even 2 correct it thanx alot MODEL SMALL .STACK 1000 ORG 100H .DATA INPUT LABEL …

Member Avatar for rm_daniweb
0
258

The End.