3,896 Topics

Member Avatar for
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 nanodano

I've been trying to solve this problem for a while now with no luck. I want to monitor an input buffer(cin) for a keypress. The catch is, I don't want it to hang if the buffer is empty. [INLINECODE]getch()[/INLINECODE] and [INLINECODE]peek()[/INLINECODE] won't work because one waits for a keypress and …

Member Avatar for cniggeler
0
151
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
220
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
87
Member Avatar for lkool

Having a problem with ASP.NET on Vista Business 32 bit. This is s a development machine. I have tested websites using the "View In Browser" and Debug options from Visual Studio 2008 and they load without a problem. But when I try to run a site from localhost i get …

Member Avatar for Ronald.Mundell
0
315
Member Avatar for sivak
Member Avatar for JerryShaw
0
84
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 ferroariel

Hi u all!!! I have a website, dedicated to beauty products for women, ok? Sometime ago a friend of mine told me "hey! why don´t you send that info through MSN?". I liked that, so I downloaded an autoresponder code from here: [URL="http://nayyeri.net/blog/auto-responder-add-in-for-windows-live-messenger/"]http://nayyeri.net/blog/auto-responder-add-in-for-windows-live-messenger/[/URL] So I simply added this routine to …

Member Avatar for ferroariel
0
109
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 serkan sendur

i am creating a small cpu simulator and i need to parse the assembly instruction which is like "add $s1 $s2 $s3", i need to get these four individual words ignoring the white spaces, if i use string.split(' '), it wont work if user enters more than one space between …

Member Avatar for serkan sendur
0
181
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
93
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
296
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 Premkumar75

I'm facing problem with a dotnet usercontrol hosted in the IIS server. I've developed the component as a class library. I've a requirement to get a mail from Outlook, hence I have referenced the Office PIA Libraries (for Office XP). The assembly is strong named. I've placed the dll files …

0
37
Member Avatar for chris5126

Hi, I wish to add the following to my web.config file: [code] <appSettings> <add key="networkDrive" value="C:\test"/> </appSettings> [/code] But everytime I add it i get the following error: [code] Sections must only appear once per config file [/code] I looked in the file to see if it appeared more than …

Member Avatar for achristov
0
298
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 serkan sendur

i have the following code : [CODE]static IScanningService scanningLayer = null; public static IScanningService BarcodeReader { get { if (scanningLayer == null) { string serviceName = GetServiceName(); try { if (deviceService == null) deviceService = Assembly.Load(serviceName); object o = deviceService.CreateInstance(serviceName + ".BarcodeReader"); scanningLayer = o as IScanningService; scanningLayer.AutoStartScan = Global.device.AutoStartScan; …

Member Avatar for serkan sendur
0
116
Member Avatar for chriscross86

Hi, there, i am coming up with a form and i am getting an error message as below: Error 5 Sections must only appear once per config file. See the help topic <location> for exceptions. C:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\WebSites\WebSite1\web.config 31 i have also included the whole web.config settings …

0
58
Member Avatar for britto

hi ...... im trying to create a simple c compiler..... how to link the header files to c code????? can the linking process can be done in assembly language... or is there a linker for download.... please help.... thanks in advance...

Member Avatar for jephthah
0
99
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 KaneShade

I'm getting a RunDLL error on startup that says as follows: Error loading C:\Windows\Qqafeco.dll The Specified module could not be found. After I close the notification box, my computer seems to be running ok, but goes through extremely slow periods where it sometimes takes text I write 10-15 seconds to …

0
54
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

The End.