2,889 Topics

Member Avatar for
Member Avatar for DeanMSands3

In my wayward youth, I learned a little bit of inline assembler in Turbo C. And that was fun. Then I got into DJGPP which came with GCC and Bell Syntax. And it was confusing. And I gave up. Fast forward 12 years. I'm 30, finishing a bachelor's in CS. …

Member Avatar for DeanMSands3
0
223
Member Avatar for juce

Matrix given in memory to print the spiral in opposite direction from clockwise (left column down the right lower range, right up column, a series of upper left, etc. until you get to the middle) I'm new here, I have to write code for the task above in assembly,could someone …

Member Avatar for Hugo123007
0
2K
Member Avatar for JRE.A

I have a problem when adding 2 numbers in assembly because we are using hex. When add 4+5 (34h + 35h) the output is 9 but if I add 5+5 (35h + 35h) the output displays colon(:) or 3ah instead of 10. Here's the sample image when i generate the …

Member Avatar for thines01
0
226
Member Avatar for Desi991

Hi all my assignment is too add and multiply 32 bit signed numbers. [CODE]INCLUDE Irvine32.inc .data z BYTE "Enter first integer: ", 0 c BYTE "Enter second integer: ", 0 outpt Byte "The addition of two integers is: ", 0 val dword ? .code main Proc call clrscr mov edx, …

0
80
Member Avatar for JoderCoder

Firstly, this is not directly assembly question but quite close, it is machine code. I am asked to add two numbers using stack. The question was actually asking for [COLOR="Green"][COLOR="Red"]1. write a program that adds the numbers 2 and 9 together. The number 2 is stored in memory-address 300 and …

0
55
Member Avatar for rumencho

Hi all,I'm beginner in assembly language. I use TASM and it works well,but I should place all my .asm text files in /TASM/BIN directory ,because only there assembler see the files. and this is quite annoying,I want to have special folder for this purpose and place it whenever I want.

Member Avatar for amar.chukki
0
1K
Member Avatar for megan11

Greetings forum, I have an assignment for my architecture class which to implement a 31 backgammon game in MIPS assembly, I have done alot so far, and I have been using 2 arrays to display the board, I used 0s to indicate empty fields and other numbers for example 13 …

0
48
Member Avatar for BleepyE

Im using MIPS and im looking to display the numbers between two other numbers. For example; $t1 = 5 $t2 = 9 Display = 56789 Ive only just started learning the language so im still struggling to get used to it. Thanks

Member Avatar for BleepyE
0
143
Member Avatar for silvercats

I downloaded NASM and NASM-IDE.Is there any specific good IDE? I am going to need windows debug as book says.But there is no debug in windows 7. Where can I download? Any alternatives? DO you think learning assembly will be useful in 2012?

Member Avatar for AceStryker
0
190
Member Avatar for SamY

hi, i have been able to map the 1st 4MBs of the memory but now i am trying to create an allocator. it 1st checks for enought memory using the BITMAP method, then after that it allocates areas where the PDE and all its PTEs will stay. Now i need …

0
67
Member Avatar for stakeMyHeart

please help me. i dont understand this: Create routine to display * based on AL w CR AL=07 CALL 120 & RET output: ***** my professor said cr is call routine, that's all, he didnt tell us what does that mean help me please

Member Avatar for Zssffssz
0
340
Member Avatar for iPanda

I'm trying to check the length of a string, its the most simple way there is but for some reason it says the the length of the string is 14h [CODE] org 100h mov cl,len mov si,offset src mov di,offset dst rep movsb mov ah,0 int 16h ret src DB …

Member Avatar for dheaven
0
121
Member Avatar for ydan87

Hello all, I need to implement iterative (non-recursive) binary search in assembly. The array has 10 elements, starting from 0x10000100, in address 0x10000004 there's the element to search for, and the answer should be put in address 0x10000008 It should be for MIPS and I ran it in QTSpim Here's …

Member Avatar for rubberman
0
143
Member Avatar for kikic

Here I have code in C, I need help to translate this in assembly emu 8086. Please help me if you know. [CODE]#include <stdio.h> #include <stdlib.h> int main(void) { int **mat; // Pointer to pointer int rows, cols, i, j; printf("How many rows you want "); scanf("%d", &rows); //rows = …

0
109
Member Avatar for mohamed moamen
0
135
Member Avatar for asmfreak

hi can someone tell me how to write a code in assembly language to implement a simple countdown timer (only seconds) display on the command prompt screen? thanks

Member Avatar for lulabylove
0
15K
Member Avatar for squares86

It is from Chapter 10 of jeff duntemann's book on assembly language. I tried to write some code by myself but I can't get it to work properly. I need some insight please. [CODE] ;Library Name:hexasc_lib;used as library for hexasc.asm section .data DumpLin: db " 00 00 00 00 00 …

Member Avatar for sbesch
0
264
Member Avatar for hsetaknev

Hi guys, Am a begginer learning assembly .I am using Instruction set of 8085 for simplicity in the understandind. I've down loaded a soft called GNUsim8085.. I dont know how to load a loop n a simulator,and dont know how o input user values.PLEASE guYS tELL ME HOW IF U …

0
178
Member Avatar for squares86

I an a newbie to assembly language, been reading jeff duntemann's book, and I have been trying to write some code by myself too. There is an example in the book on converting binary values to hex values. I decided to re-write the code again by myself for self-practice but …

Member Avatar for squares86
0
163
Member Avatar for kikic

I made a code in assembly 8086. I load matrix (array) in memory with dimension 3x3. but this code works just for this dimension of matrix 3x3. Could someone give me an idea how could i make it to work with dimension m x n? the array is loaded in …

Member Avatar for kikic
0
230
Member Avatar for kamyarn

Hi I want to read a string (Last name) from keyboard, concatenate it to another string (First Name) and then print it on screen. (Windows, EMU8086, EXE Template) First I declare the variables in data segment [CODE] msg1 db 0ah,0dh,"Enter your last name: $" ;prompt message msg2 db "Kamiar " …

Member Avatar for kamyarn
0
6K
Member Avatar for Locke123

So I'm tasked with writing a subroutine to access a certain element of an array. When the subroutine is called, the pointer that points to it is [bp+1]. How would I make it so I could access say the 10th element of this array in the sub routine?

Member Avatar for sbesch
0
183
Member Avatar for lbmve

Good, I'm doing a work in assembley. where I have to reverse the string using recursion: Only by using the following commands: - LOCO, Lodder, ADDD, SUBD, LODL, ADDL, subl, PUSH, POP, PSHI, POPI, CALL, Retn ... trabid:. string "hello world" main: . ... ... rec: # recursive function that …

Member Avatar for Schol-R-LEA
0
106
Member Avatar for toantk_55

I have some problem I have a file .s with codes: [CODE] #double cel2fahr(double *temp) #{ #return 1.8 * (*temp) + 32.0; #} .section .data cel: .double 30.5 scale: .double 1.80 output: .asciz "The fahrenheit value is: %lf\n" .section .text .globl _start _start: mov $cel,%eax call proc_cel2fahrenheit movl $output , …

Member Avatar for gusano79
0
89
Member Avatar for webdeveloper2

I need to know how to do a assembly program that accepts a string with the Instruction format and understand it and then execute it Input: String as“mov eax,10” Output: The string instruction will be executed.

Member Avatar for NotNull
0
229
Member Avatar for jessCPP

Doubts with sidt instruction. Hi Friends! I have a doubt with the sidt instruction. The Intel documentation for “SIDT m” stated: [code] Stores the content of the IDTR in the destination operand. The destination operand specifies a 6-byte memory location. If the operand-size attribute is 32 bits, the 16-bit limit …

Member Avatar for NotNull
0
145
Member Avatar for faith07

Hello everyone, Im new in assembly language. I would like to ask your help to teach me how to convert the below C language into tasm language. thank you very much. #include <stdio.h> #include <dos.h> main() { unsigned int year; unsigned char month; unsigned char day; union REGS regin,regout; clrscr(); …

Member Avatar for neha afreen
0
1K
Member Avatar for dancks

I have a larger program that I want to write, but I can't complete it unless I get this down. I have an array, need to put in a string value to be read out. the program generates characters of data at a time, not as a whole string so …

Member Avatar for dancks
0
171
Member Avatar for iPanda

I have an assignment to make a code that will check what is the longest "string" of zeros inside a double word binary number, for example (in a Byte) if I have this number: 10010001 The answer will be 3. The code I've written works fine until a certain point …

Member Avatar for GunnerInc
0
113
Member Avatar for VirusS

good morning \ afternoon \ evening i need a help in the assebly code ,, my brain about to explore !! so here's the Q: this program reads an array of integers and an integer number .the program then checks if there are any numbers in the array smaller than …

Member Avatar for VirusS
0
268
Member Avatar for kikic

Hello, I need help for my task.. This is the matrix 1 2 3 4 5 6 7 8 9 the result is 1,4,7,8,9,6,3,2,5 I have to solve this task in assembler 8086 in emu... I need help, it is very important for me. Please help me

Member Avatar for kikic
0
5K
Member Avatar for dedmonds

I have created this code, but now I need the create new prgram that repeats the same steps three times, using loop. Clear the screen after each loop iteration. ??? [CODE] integer_count = 3 .data promptuser byte "Enter a two integers: ", 0 sumOf byte "The sum of the integers …

Member Avatar for sbesch
0
196
Member Avatar for aizen92

Hello, I would like to know how can I put a binary number such as 110 in a register in MIPS? Thanks,

0
147
Member Avatar for kikiritce

; multi-segment executable file template. data segment string db "THis is LuxUR in Summer." ends stack segment dw 128 dup(0) ends code segment start: ; set segment registers: mov ax, data mov ds, ax mov es, ax mov bx, offset string mov al, 0 ; lower letters in word mov …

Member Avatar for sbesch
0
260
Member Avatar for ronnelglova

hi, I want to display _____* ____*** ___***** __******* _********* what should I do.,?

0
47
Member Avatar for kikiritce

Matrix given in memory to print the spiral in opposite direction from clockwise (left column down the right lower range, right up column, a series of upper left, etc. until you get to the middle) This is matrix 1 2 3 8 9 4 7 6 5 and the result …

Member Avatar for kikiritce
0
162
Member Avatar for rockerjhr

pushl %ebp movl %esp,%ebp pushl %ebx movl 8(%ebp),%ebx leal 2(%ebx),%edx xorl %ecx,%ecx cmpl %ebx,%ecx jge .L4 .L6: leal 5(%ecx,%edx),%edx leal 3(%ecx),%eax imull %eax,%edx incl %ecx cmpl %ebx,%ecx jl .L6 .L4: movl %edx,%eax popl %ebx movl %ebp,%esp popl %ebp ret trying to make code in c then compiling it with the …

Member Avatar for BlZbB
0
257
Member Avatar for shane707

I need help in a program in Mainframe Assembler, for IBM Computers. I need help in Write an assembly program (Mainframe Assembly [url]http://www.billqualls.com/assembler/index.html[/url]) that reads a file and reports how many lines, words, number of commas, number of periods and characters that appear in it. For purposes of the program, …

Member Avatar for shane707
0
230
Member Avatar for rockerjhr

Im new to asembly in general and im trying to learn but i kind of not get a lot of stuff in IA32 how do I convert this: [CODE]pushl %ebp movl %esp,%ebp movl 8(%ebp),%edx movl 12(%ebp),%eax movl %ebp,%esp movl (%edx),%edx addl %edx,(%eax) movl %edx,%eax popl %ebp ret[/CODE] to C ? …

Member Avatar for rockerjhr
0
124
Member Avatar for shqiptari88

Hi, I need to program to compress/decompress txt files using Huffman algotrithm I have writen it, and it works good for files that have less charachters than the buffer size, but it doesnt work for files with greater number of characters. My problem is to interface compression buffer with decompression …

0
66
Member Avatar for shacknetisp

I am creating a simple Operating System called OneFileOS, and I am wondering if I must use a special version of assembler, or if I can use the regular x86 version. Thank You.

Member Avatar for Ancient Dragon
0
151
Member Avatar for potpaLaptop

I got the basic understanding of what it is asking for the Declarations but im lost after the first question. 1) Declares a vehicle record as a struct with the fields: id, make, cost, sale price, profit (profit should be kept empty, it will be calculated in the program) 2) …

Member Avatar for Ancient Dragon
0
128
Member Avatar for chchiu
0
75
Member Avatar for meowbits

I have been messing around with this code forever.. I know im missing something but I am completely lost at this point. The code is suppose to print the array, then shift all the values to the right with SHRD, then reprint the array. Please help! Thank you! [CODE]INCLUDE Irvine32.inc …

Member Avatar for meowbits
0
195
Member Avatar for Diogo Martinho

This is probably an easy thing to do but I don't know how. How can I declare in the .data section one pointer to an integer?

Member Avatar for Diogo Martinho
0
74
Member Avatar for mailgtauqeer

You can use and assemble with MASM611 very easily in Notepad++. Ihave find a very nice customization of Notepad++ on a blog. You can find it at [URL="http://easymasm.blogspot.com/"]http://easymasm.blogspot.com/[/URL]

Member Avatar for mailgtauqeer
0
435
Member Avatar for buae2

Hi are these two instructions valid in assembly language? (8086 mov instruction). 1. mov DS,[BX] 2. mov DS,[3900H] if no,why not?!

Member Avatar for gusano79
0
189
Member Avatar for minimi

The code I have written so far only blinks constantly regardless of which switch is HIGH or LOW.. I can't seem to figure out how to make one switch faster than the others because it would either blink all switches at same rate or remain steady (doesn't blink). Could anyone …

0
83
Member Avatar for datdude07

Hi I'm stumped on how to make this program that I'm working on to output the information to the text file in a nice fashion instead of writing it in a funny way. I basically want this program to output the student record information line by line and organized. The …

Member Avatar for datdude07
0
154
Member Avatar for jdm

Is it possible to check a string that is stored in a dword for spaces? Sincerely yours; jdm

Member Avatar for thines01
0
127

The End.