3,397 Topics

Member Avatar for
Member Avatar for mnstrgrvyrd

The homework is to create a pretty simple calculator, and I think I understand how to do all the calculations well enough, but I'm struggling with a different part of the homework. The user inputs some thing like this: +ooooo which means add 5 to the running total. Or something …

Member Avatar for Schol-R-LEA
0
1K
Member Avatar for Spagett912

I had been writing a program that enforces the loop instruction with indirect addressing but I need it to copy a string from source to target, reversing the character order in the process. I need to use the variables: source BYTE "This is the source string",0 target BYTE SIZEOF source …

Member Avatar for Schol-R-LEA
0
4K
Member Avatar for darren110690

can i ask something whats the used of [B].org 100h[/B] in assembly language..., and why it is 100h why can/t it be 60,70,80 or 90h? tnx :)

Member Avatar for Reverend Jim
0
25K
Member Avatar for Belfina

Hello there guys! I must implement a linked list in assembly (using MIPS). We're supposed to dynamically allocate memory for the nodes. This is what I am asked to do: Write a program in assembly (MIPS) that implements a link-list. The client can choose among the following options. So the …

Member Avatar for rproffitt
0
6K
Member Avatar for i dont know

Hello all, i need your help regaring this code, which is in python and i need to convert it into mips?? register $s0 holds the base address of list my_data, $s1 holds the length of the list my_data, register $s2 holds the base address of list my_data2 and $s3 holds …

Member Avatar for rproffitt
-1
3K
Member Avatar for jalanderful

Hello, I am supposed to write a code in MIPS to do the following below. Basically, you enter an integer, and it should check to see if it is a palindrome, and if not it will output the number, and keep adding the numer backwards to it, outputting it, and …

Member Avatar for Farah_3
0
1K
Member Avatar for theburg30

Preconditions: Addresses of 2 integer variables are on the stack as the parameters. Sample c call: swap( &num1, &num2); You must implement the following C swap function: /* Swaps the two values pointed to by x_ptr and y_ptr. */ void swap (int *x_ptr, int *y_ptr) { if (x_ptr != y_ptr) …

Member Avatar for mohamed_101
0
20K
Member Avatar for Albert_11

I'm stuck on converting hex or decimal to 16-bit binary,and I don't know how to start. Here is the tasks I need to do: Decimal Conversion Task: Add code that displays the value in R3 to the console as a binary string. It should convert R3 one bit at a …

Member Avatar for rproffitt
0
4K
Member Avatar for SlimmC88

Hello Evreryone, I am new here and would love some help with a project I have. I have to create a MIPS program where we implement different funcntions. I was able to do strcopy but Im having trouble finding how to code the strchr, strcmp, and memset functions. Unfortunately I …

Member Avatar for rproffitt
0
883
Member Avatar for Yousaf_1
Member Avatar for aya_5

`.model small .stack 100 .data kernel DB 10 DUP(1) input DB 1, 2, 3, 4, 5, 6, 7 output DB 0, 0, 0, 0, 0, 0, 0 .code MAIN PROC FAR MOV AX, @DATA MOV DS, AX LEA BX, input LEA DI, output MOV AX, 0 ;1st element starts here …

Member Avatar for itnavigate
0
489
Member Avatar for aya_5

I have an input signal array I have a kernel array of size 10 filled with ones 1) I need to store the input signal array in a block of memory 2) I need to find the intersection between the input array and the kernel 3) I need to output …

Member Avatar for rproffitt
0
534
Member Avatar for Alex_69

Basically title. Part of a larger program, but I can't figure out how to remove just the first letter (it's always not a number; A, B, C, X, etc.), and is always followed by numbers. So essentially, I'm trying to get "x234" to "234". I figured I could use lb …

Member Avatar for Alex_69
0
4K
Member Avatar for Steve_37

gerard4143 explained 6 years ago how to store binary code in memory and then execute it. See https://www.daniweb.com/programming/software-development/threads/353077/store-binary-code-in-memory-then-execute-it#post1500738. In the example, we create an array of unsigned char containing these values: 0x50,0x57,0x56,0x52,0xe8, 0x00,0x00,0x00,0x00,0x5e, 0x48,0x81,0xc6,0x24,0x00, 0x00,0x00,0x48,0xc7,0xc0, 0x01,0x00,0x00,0x00,0x48, 0xc7,0xc7,0x01,0x00,0x00, 0x00,0x48,0xc7,0xc2,0x0e, 0x00,0x00,0x00,0x0f,0x05, 0x5a,0x5e,0x5f,0x5a,0xc3, 0x48,0x65,0x6c,0x6c,0x6f, 0x2c,0x20,0x57,0x6f,0x72, 0x6c,0x64,0x21,0x0a,0x00 This works fine when I use the …

Member Avatar for rproffitt
0
371
Member Avatar for hkdani

Using tasm32. GetStdHandle returns INVALID_HANDLE_VALUE in eax register. .386 .model flat extrn GetStdHandle:PROC extrn ExitProcess:PROC .data .code start: push -11 call GetStdHandle push 0 call ExitProcess end start Other APIs work fine. just having problems with GetStdHandle. Any ideas?

Member Avatar for hkdani
0
468
Member Avatar for Rimi_1

Hello to all group members, Im having a problem with my assembler. I have installed MASM 6.11 and i have 'Windows 10'. Everything works out just fine, the compiler and all and even my programs are accurate as they get. The problem is that when im trying to go to …

Member Avatar for rproffitt
0
260
Member Avatar for Mike_43

Write an assembly program that reads two integers from the user, X and Y, then stores the largest input into a variable called L. The program should show prompts to tell the user to enter the two numbers.

Member Avatar for rproffitt
-2
532
Member Avatar for Nadir_1

He , how do i print multibel line's i use de .inc from mikeos but don't knows how to loop like this: .message db 'hallo 1',0 db 'hallo 2',0 db 'hallo 3',0 for the moment i uze ;------------------------------------------------------ ; Install screens 1 ;------------------------------------------------------ BITS 16 ORG 32768 %INCLUDE "pirom_dev.inc" start: …

Member Avatar for rproffitt
0
239
Member Avatar for rsu

i have installed nasm in ubuntu in linux but dont know how to and where to write code of assembly language and run my code please give me information as soon as possible.

Member Avatar for yahya_3
0
6K
Member Avatar for moonu

Write an Assembly program that allows the user to enter a string of up to 99 characters. The program shall then replace all the digits with their corresponding words. The words shall be printed in all lower case or all upper case depend on the case of the last alphabet …

Member Avatar for rproffitt
0
315
Member Avatar for Razvan_1

So i have my mips code that i want to do the follow thing: When i get a vowal (aeiou) it prints the next consonant from vowal (bfjpv). My code works 80% but when i do that it deletes the next char where i replace. Like: Bruno it must print …

Member Avatar for rproffitt
0
298
Member Avatar for mohamed_91

write a program in assembly that do the following: 1-ask from the user to choose the system of numbers(binary,hex,oct,dec) 2-then ask from the user to insert two values and mathematic operator ex: val1=any number not more than 8 bits. operator= (multiplication)or(division)or(-,+,^) val2=any number not more than 8 bits. 3-then do …

Member Avatar for thines01
0
256
Member Avatar for Razvan_1

So i want to swap the vowals with vowals+consonants everytime i found them. a = ab e = ec i = id o = of u = ug For example: The message is: "Hello", the return message must be: "Hecllof". This is the code that i have until now: .data …

Member Avatar for rproffitt
0
324
Member Avatar for fatalaccidents

Hello all, Let me first state that this is my first program written in ARM, so please excuse that it might seem a bit chaotic. Also, I want to state that this is a homework assignment for an assembly class. I am supposed to read in an input file, only …

Member Avatar for Rajan_7
0
3K
Member Avatar for This_1

movlw 0x05 movwf 0x23 movlw B´00111000´ movwf STATUS bcf TRISA,0 bcf TRISA,1 bcf STATUS,5 bsf PORTA,1 movlw 0x07 movwf 0x25 movlw 0xFF andwf 0x25,1 nop movlw 0x0F movwf 0x27 clrw iorwf

Member Avatar for xrjf
0
297
Member Avatar for AssertNull

The bad-word filter didn't add the asterisks. I did. I got passed a link to this "Computer Language" by a parent who asked me if I knew anything about it and was this a worthwhile endeavor for her teenage son to learn. I assumed by the name that it was …

Member Avatar for stephenlangton
0
505
Member Avatar for Vimal_6

Hi i want to write a Assembly program x8086 that converts the Decimal number into a binary and hex number.In Visual studio I know how to write the same program in emu8086 simulator but i am unable to write in visual studio.I would really appriciate some help if possible ? …

Member Avatar for rproffitt
0
261
Member Avatar for Rajan_7

As a students of embedded what is the scope of advanced embedded system? Is it a better career option?

Member Avatar for rproffitt
0
278
Member Avatar for Michael_69

Hi guys, can you help me with a MIPS Asm exercise. It's the first time that i coding in this language... I solved the exercise in Java, you can get some help to convert it to MIPS? thanks a lot to everyone Java code: public class Exrcise1 { public static …

Member Avatar for ddanbe
0
396
Member Avatar for Victor_15

Using the IAR, I need to develop a program to display a timer using the 7 segment displays, the counter must be able to count up to 59 minutes and 59 seconds and must be displayed in the following format: 59:59 (using the colon). Use software delay loops to approximate …

Member Avatar for SeacoastView
0
616
Member Avatar for Crischin

How to display letters A to P (capital letters) with spaces in between? using assembly language? Requirement: use loop command For 15 lines below :(

Member Avatar for okayservers
0
187
Member Avatar for nandosss

i have a problem that i cant figure out how to solve it taht involves mips assembly. I need to ask the user for how many string they want to sort and then loop that many times and store all those strings in an array. I know how to ask …

Member Avatar for Nauman_4
-1
317
Member Avatar for Jezer

Mam/Sir Somebody can help me!!!! I did the format that displayed of the horizontal position after input the single character and so that is a requirement of the output So this is a expected output The output should be like this: EVEN EVEN Input: X xyz The requirement should be …

0
142
Member Avatar for Jezer

Hello i am creating the assembly program that accepts a single character and display the alphabet . The requirements are (1) The input character should be displayed (2) The input of the single uppercase letter should be displayed the lowercase letter. (3) The alphabet should be displayed horizontal position and …

1
231
Member Avatar for Faith_3

write a program that will take two members A and B and print out all the multiplies of A from A to A*B

Member Avatar for Dani
0
124
Member Avatar for komal_5

write an assembly language code that will: Read a character (ASCII code) from keyboard using a BIOS interrupt. then have to print that ASCII character in binary number system using DOS interrupt. and have to invert that ASCII code and have to transmit it to a parallel port using a …

Member Avatar for rproffitt
0
195
Member Avatar for Monther_1

.STACK 100H .DATA .CODE MAIN PROC MOV AX,@DATA MOV DS,AX ;DISPLAY MSG1 LEA DX,MSG1 MOV AH, 09H ;DISPLAY STRING INT 21H ;DISPLAY MSG1 ; start of loop mov bX,0 loop_top: MOV AH,1 INT 21h cmp al,0dh je Display1 ; testletters cmp al,'A' JL loop_end CMP al,'z' JG loop_end INC bx …

Member Avatar for Dean_5
0
206
Member Avatar for cpsusie

Alright guys, I'm a total n00b to assembly. NOTE: I am not a student -- I am a professional lawyer who loves to tinker with the computer and waste time. Using Visual Studio 2008 Express (C++), I actually managed to write a function in assembly language that evaluates a character, …

Member Avatar for Zack_7
0
12K
Member Avatar for Maria_21

How coul I compare 2 strings, one that is given by a use and the other one from data segment in memor, in assembler? for exemple: assume cs:code,ds:data data segment parola db 'mananca$' introdu db 20,?, 20 dup (?) gresit db 'Mai incearca$' corect db 'Ai ghicit$' linieNoua db 10,13,'$' …

Member Avatar for Taywin
0
466
Member Avatar for 绍禹
Member Avatar for Aeonix

Couple statements, couple answers. I don't understand everything. If I'm wrong, correct me, but don't be mean about it. You weren't senior in your first steps either. Some of these are guarranteed wrong, because I want to taunt out the correct answer. Statements: **S1. Assembly works 1 on 1 with …

Member Avatar for Reverend Jim
0
421
Member Avatar for mariam_4

i should to move the biggest value to the last index in the array then to print the array. when i print it i get things like letters, smiles... what is the wrong in the code? .model small .stack 100h .data array db 3,8,5,3 n equ 4 b db dup …

Member Avatar for rproffitt
0
302
Member Avatar for toxicandy

I am trying to complete an assignment using stacks and I need a little guidance. My task is to make an array of 6 values and pass it to VIA stack to a subroutine where I need to increment through it and pass each value of the array to another …

0
167
Member Avatar for brunoccs

Given the following C code: `B[8] = A[i - j]` Assuming B = $s7, A = $s6, i = $s3 and j = $s4 What would the assembly code be? sub $s3, $s3, $s4 # i - j sll $s3, $s3, 2 # multiply the offset by 4 add $s3, …

Member Avatar for Ánh
0
2K
Member Avatar for Neversleepin

Hi everyone, i'm trying to code a Clock with 2 7segment (commun anode) with 8051 microcontroller in assembly language. i use only two 7 segment led because i want just minutes and secondes for hours i will see later. So i tried to code and when i run it, it's …

Member Avatar for Rizwan_5
0
3K
Member Avatar for MiniScotch

TITLE JIMMY .MODEL SMALL .STACK 100 .DATA NUMERO1 DB(?) NUMERO2 DB(?) NEGAT DB "-$" POSITIVO DB "+$" NEGA DB(?) MOLTIPLICAZIONE DB(?) DIVISIONE DB(?) SOMMA DB(?) SOTTRAZIONE DB(?) UNITA DB(?) DECINE DB(?) SCRITTURA1 DB "IMMETTI I DUE NUMERI $" SCRITTURA2 DB "IL RISULTATO DELLA MOLTIPLICAZIONE E $" SCRITTURA3 DB "IL RISULTATO …

Member Avatar for rproffitt
-1
542
Member Avatar for Haider85

I have some data in varbinary(max) from database and I have exported it to physical files. Some of these files were in jpeg so I was able to just add an extension .jpg to it and it opened. The rest are not jpeg files. **I have tried almost all the …

Member Avatar for rproffitt
0
467
Member Avatar for claire_1

Hi guys help this newbie out. My code which uses midpoint circle algorithm to draw the circle and seeking algorithm (steering behaviour) to move the circle towards a position. However the circle is not being drawn and the seeking algorithm i believe is flawed. Please review this and tell me …

Member Avatar for rproffitt
0
961
Member Avatar for Kinda_1

Hi Iam a student , nd i have a home work Can any one help me !! Plz Write an asm 8086 language program that take 2 strings as input and computes the string distance between the 2 ,,, the string distance between 2 string os the sum of the …

0
170
Member Avatar for jodytj

;I am using: ;gcc (Ubuntu 4.9.3-8ubuntu2~14.04) 4.9.3 ;g++ (Ubuntu 4.9.3-8ubuntu2~14.04) 4.9.3 ;I keep getting the following error: ;ch4p5.s:13: error: parser: instruction expected ;ch4p5.s:15: error: parser: instruction expected ;How do I fix it? ;Here is what I have: %include "macros_windows64.s" .MODEL SMALL .STACK 100H @DATA: PROMPT_1 db 'Enter the hexadecimal number …

Member Avatar for rproffitt
0
11K

The End.