2,888 Topics

Member Avatar for
Member Avatar for roud13

Hello, I'm writing a little program and I have a problem : Using the CHARI instruction , I 'm supposed to get 4 digits representing a year ( I can not use DECI ) . I am able to read characters one by one and convert them to decimal , …

0
102
Member Avatar for krieg

Okay. So I have this code in intel syntax. BITS 64 section .text global asm_proc asm_proc: jmp program section .data ; b8 - mov rax, <32bit immediate> ; 64 00 00 00 - The number 100 decimal ; C3 - ret program db 0b8h, 064h, 000h, 000h, 000h, 0c3h I …

Member Avatar for krieg
0
169
Member Avatar for RikTelner

If I have ready assembler code. How do I make it into runable code, I want to mess around with it and test it in VMPlayer. As far as I know, I could use NASM, and all "NASM's" can be downloaded from: http://www.nasm.us/pub/nasm/releasebuilds/2.11.06/ so, I've managed to find the right …

Member Avatar for RikTelner
0
359
Member Avatar for krieg

Okay, so I am learning Assembly and I started with 32bit and `bswap` seemed to work fine. Now I have this code main.c #include <stdio.h> #include <stdlib.h> extern int asm_proc(void); void print_bits(unsigned long long bits) { for (int i = 0; i < sizeof(unsigned long long) * 8; i += …

Member Avatar for krieg
0
818
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
187
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
235
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
277
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
110
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
272
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
646
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
107
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
241
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
350
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
113
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
983
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
14K
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
282
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
75
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
112
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
161
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
973
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
162

The End.