2,888 Topics

Member Avatar for
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
175
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
104
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
86
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
228
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
141
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
167
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
109
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
266
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
191
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
145
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
258
Member Avatar for ronnelglova

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

0
45
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
159
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
252
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
226
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
120
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
65
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
148
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
126
Member Avatar for chchiu
0
72
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
192
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
71
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
425
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
187
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
81
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
152
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
123
Member Avatar for fat0ali0ma

heey I need ur help.. how to convert a string (text content) to base 64 ??what are the steps for writing this program thx..

Member Avatar for gusano79
0
276

The End.