2,878 Topics

Member Avatar for
Member Avatar for Syeda_2

consider the following pseudo code and write the corresponding assembly code for it. Note: There is more credit for a shorter code. If (al > C1) AND (b1 > a1) { dx=1 } i can`t understand this code.... anyone solve this problem????

Member Avatar for gusano79
-1
1K
Member Avatar for The Old Man

I am wondering is assembly still used at all or is something else preferred

Member Avatar for sDJh
0
183
Member Avatar for Hadi.M

Hello all, I am trying to self learn the x86 assembly language and I came across a problem that I can't seem to fix. I want to recieve an integer input from the user and convert it to a word. Example: Input = 0 : Output=Zero. Any help?

Member Avatar for gusano79
0
213
Member Avatar for mnkyskilz

hi i am required to write a program in mips assembler where i am to create a checkerboard which is too be saved and written to a bmp file, compile this program it has a problem with writing the file because it jumps straight to my error message could someone …

0
253
Member Avatar for selamina

1. Write a program to demonstrate Disk I/O with good functionalities for ELASS or any other assembler of your choice. The program should at least deal with the following functionalities:  Open an existing file (let’s say a text file)  Seek to a specific location in the file  …

Member Avatar for ddanbe
-2
109
Member Avatar for saly.alsayed.7

1) When the program is executed, it asks the user to enter a password 2) When the user enters password, its characters should not appear and * must appear for each character. 3) The program compares this password with hardcoded constant password (e.g. pass DB ‘Abc123’). 4) If the entered …

Member Avatar for saly.alsayed.7
0
267
Member Avatar for Dani

This is a program I wrote for my x86 assembly class which is basically the Spade Invaders game in all its glory. It uses Irvine32.inc which came with the textbook.

Member Avatar for Dani
2
2K
Member Avatar for Francis_2

MIPS program that takes an array elements as inline data and prints them in ascending and descending orders input should be interacive. I don't know where to fix.... help me to fix. .text main: li $t4, 9999 #$t4 = 9999 la $s0, array #$s0 = address of array[0] move $a1, …

Member Avatar for Schol-R-LEA
0
635
Member Avatar for Roger_2

hello everyone! my program is nearing completion and is due tommrow. However i have identified the source of an issue. i am cycling through a few functions which roll a dice 1-6 and add that result to a buffer to keep score.Then when i want to print, i am only …

0
106
Member Avatar for Roger_2

thank you all of you for the help i really appreciate it. i have a hopefully quick question, is this the correct syntax for adding an integer to a buffer: " add dword [userScore], 6 " or do i have to convert the userScore buffer to integer then add and …

Member Avatar for Roger_2
0
238
Member Avatar for Roger_2

my objective is to create a simple game called Pig. The rules are 2 players (you and the computer) are racing to reach 100 points. Each turn, the active player faces a decision: a) Hold, take your turn total and add it to the player's overall total. The next player …

Member Avatar for Roger_2
0
341
Member Avatar for amatsas

Hello, I am working on a project with the following directions: Store a name as ASCII Hex values in an array – enter Hex values into ASM source code directly. First character of first and last name is Capitolized, all other characters are lower case. Output 3 different strings: 1. …

Member Avatar for David_50
0
112
Member Avatar for Roger_2

I have tried with the algorithm below but it does not generate the results i am looking for and i am a bit stumped. I have tried swapping the elements in the array, unless you know there is a less trouble sum alternative example: 1,2,3,4,5 becomes 5,4,3,2,1. i have searched …

Member Avatar for nullptr
0
1K
Member Avatar for Roger_2

Generally, my professor's assignments are vague with limited constraints. while this allows the opportunity to become resourceful and creative, there are some like i who are blindly lost without a push in the right direction, this is my assignment please any insight is much appreciated. We are going to work …

Member Avatar for sbesch
0
953
Member Avatar for Roger_2

please help me, i need to print my array in nasm. this is what i have so far, section .bss section .data array dd 1,2,3,4,5 arraylen equ $ - array section .text global _start: _start: mov edx, arraylen mov ecx, array mov ebx, 1 mov eax, 4 int 80h exit: …

Member Avatar for Roger_2
0
13K
Member Avatar for Roger_2

my assignment involves creating a grading program. my program must accept a number from the user within the 0 - 100 range and return the corresponding letter grade based on this rubric: 90 to 100 = A 80 to 89 = B 70 to 79 = C 60 to 69 …

Member Avatar for sbesch
0
3K
Member Avatar for Roger_2

I am attempting to reverse an array2 however my program seg faults and ends right at `mov eax, dword [edi]` . theoretically this should work just fine. please any insight or alternative method/recommendations, my professor and pupils are equally stumped. Anything is much appreciated, this is my code: global _start: …

Member Avatar for sbesch
0
268
Member Avatar for mona.khalil.902

I want to read from three files, each containing let say name and grade for a student (only using tASM or Emulator)

Member Avatar for gusano79
0
58
Member Avatar for goha1414

Write a program in object code that will convert a 3-bit binary number to a decimal number,For example, if input is 101, output should be 5; if input is 011, output should be 3. that is what I have to do,this is what I have so far but its not …

Member Avatar for saifali110
0
1K
Member Avatar for shancs007

hello, guys i need a help i am trying tp print triangle but i am unable to print it rightly ..i am bad in english so plz help me i want to show triangle like this * ** *** **** ***** ..................... this is my code so far ....it display …

0
93
Member Avatar for emmanuel_3

With the use of Qtspim simulator, write a MIPS assembly language program which outputs the name of the CICTE lecturer of BIT & BCS if a course code is inputted through the console and vice versa.

Member Avatar for Begginnerdev
0
73
Member Avatar for tony75

Hi When I ran my assembly code in my Visual studio 2012 I got this error Error2 error MSB3721: The command "ml.exe /c /nologo /Sg /WX /Zi /Fo"Debug\Indexedaddressing.obj" /Fl"Proj.lst" /I "c:\Irvine" /W3 /errorReport:prompt /Ta..\ch03\Indexed_addressing.asm" exited with code 1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\BuildCustomizations\masm.targets 49 5 Proj Anyone know how can I fix …

0
111
Member Avatar for tony75

Hi I need create a program and add two variable and print out of the result of the function: WriteDec and place the result in eax before calling WriteDec. I wonder if I'm doing right? TITLE Add ; This program adds 32-bit unsigned INCLUDE Irvine32.inc .data val1 DWORD 10000h val2 …

Member Avatar for tony75
0
159
Member Avatar for tony75

Hi I try run this program(TestLib1.asm) [Click Here](https://github.com/mysteriouspants/SlopBukkit/blob/master/CS118/examples/ch05/TestLib1.asm) in my Visual Studio 2012 pro but I got errors I think the erros not in code I think in my Visual Studio 2012 configuration! Anyone know how can I fix it Error3 error LNK2005: _main@0 already defined in proj1.obj Error4 error …

Member Avatar for tony75
0
957
Member Avatar for Schol-R-LEA

One of the more common functions in any language is conversion of an integer to a string. This implementation, which demonstrates not only the common function activation record format but also a simple recursive function, was written in response to a recent question in which the OP posted an incomplete …

Member Avatar for Kiệt
0
7K
Member Avatar for gil.nickson

.model small .stack 0100h .data NEYM DW 08h, ?, 08h DUP("$") Q DB "Input First Number: $" Q1 DB 0AH,0DH, "Input Second Number: $" P DB 0AH,0DH, "Product: $" result db 13, 10, 'input number','$' ;Variables .code mov ax, @data mov ds, ax mov ah, 09h mov dx, offset Q …

Member Avatar for kashif afridi
0
160
Member Avatar for Scarlet_1

I'm coding MIPS on MARS 4.0.1 and I'm trying to add letter '1' into an array but it doesn't work. Here is my code. Can somebody help me, please :( .data time: .space 12 .text main: la $a0, time li $t0, 49 sb $t0, 0($a0) addi $a0, $a0, 1 sb …

Member Avatar for Schol-R-LEA
0
108
Member Avatar for Aws_1

hi guyz, currently i am using cortex m4, and i have to make a string reverse function that print the strings back ward. this is what i have done so far....* #include "derivative.h" #include <stdint.h> #include "clock.h" #include <stdio.h> #include"freedom.h" #include "uart.h" void stringreverse(char array[3]); int main(void) { clock_initialise(); char …

Member Avatar for Aws_1
0
221
Member Avatar for michaelg87

I have this code snippet: for (i=0; i<=100; i++) { a[i] = b[i] + C ; } I am trying to figure out what this would look like in MIPS assembly with these rules: > Assume that a and b are arrays of words and the base address of a …

Member Avatar for Schol-R-LEA
0
257
Member Avatar for blindislands

I am trying to reverse a string input by the user and reverse the string whenever * is hit. For example, if i put abc and hit * i should get abc**cba back. There're 2 functions used it this recursive function which are echo (obtain the input key) and putchar …

Member Avatar for Schol-R-LEA
0
910

The End.