2,889 Topics

Member Avatar for
Member Avatar for jack_7

hello to all I want convert this code to assembly for mac osx intel 64 : #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/socket.h> #include <arpa/inet.h> #include <netdb.h> //#define RCVBUFSIZE 4096 int main( int argc, char *argv[] ) { int sock, length; struct sockaddr_in server; char *command; // …

Member Avatar for sDJh
0
445
Member Avatar for supermastereu

Hi. I need help to write one program in Assembly Mips. << read the characters typed by the user and store these characters a string. This string is later converted to an integer. If the user tries introducing non-valid characters (that is, other than the numerals 0 to 9) the …

Member Avatar for sDJh
0
441
Member Avatar for munchlaxxx

I'm working on an assignment where I have to reverse an array (from bigEndian BYTE 12h,34h,56h,78h to littleEndian WORD ?) I have an idea of what I want to do, but **how exactly do I assign array elements to *littleEndian WORD ?* ?** I know it probably involves looping? Any …

Member Avatar for sDJh
0
188
Member Avatar for chris.vargas.773

Having trouble starting this program which states that i have to create a 4x4 table using int8 which a user in puts a number and that number appears as an x paatern on the table with the rest of the numbers that fill in postions be less than nputed number. …

0
103
Member Avatar for munchlaxxx

Hi, I was wondering if anyone could clarify what this question is asking for? *Write a program with a loop and indexed addressing that exchanges every pair of values in an array with an even number of elements. Therefore, item i will exchange with item i+1, and item i+2 will …

Member Avatar for munchlaxxx
0
930
Member Avatar for munchlaxxx

How can you view the values of the registers in Visual Studio? I think they should appear in the Output section at the bottom of the screen. I'm using Visual Studio 2013 for Desktop.

0
111
Member Avatar for danielleCSU16

Alright i have written my code to reverse a byte string character by character in-place using a loop. We have to utilize the SIZEOF and OFFSET operands and use indirect addressing, However my issue is that I am still getting the string displayed forward and not in reverse. I think …

Member Avatar for untio
0
2K
Member Avatar for andrew mendonca

For this programming exercise, you may use ONLY these instructions: and nor or ori sll srl xor Start a program with the instruction that puts a single one-bit into the low order bit of register eight ($8 or $t0): ori $t0, $0, 0x01 Now, by using only shift logical instructions …

0
220
Member Avatar for andrew mendonca

For this programming exercise, you may use ONLY these instructions: and nor or ori sll srl xor Run the programs by verifying the value of the PC is 0x00400000 (right-click the field and use Change Register Contents to set it) and then single stepping (pushing F10) and observing the results …

0
134
Member Avatar for gil.nickson

What is wrong in my code??? Please HELP. :( .model small .stack 10h .data prom db 0ah,0dh,"Enter the 1st no.:$" promp db 0ah, 0dh,"Enter the 2nd no.:$" result db "The answer is$" num db 2 dup(?),'$' stop_num db,10,13,'$' .code mov ax,@data mov ds,ax mov ah,9 lea dx,prom int 21h mov …

Member Avatar for Taywin
0
132
Member Avatar for damico.luca91

Hi all, I'm learning GAS assmbler, and I've written the following test program: .code32 .section .data values: .int 1,2,3,4,5,6,7,8,9 output: .asciz "current value %d" .section .text .globl _start _start: movl $10, %edi loop: movl values(,%edi,4),%eax pushl %eax pushl $output call printf addl $8, %esp dec %edi jnz loop pushl $0 …

Member Avatar for GunnerInc
0
214
Member Avatar for lalitha2294

Hi, I want to download TASM fro Windows 7 32 bit. Please help me to download and install it. Thankyou.

Member Avatar for tien.nguyen.3532507
0
1K
Member Avatar for boxes2
Member Avatar for iqra aslam
-2
3K
Member Avatar for maniagod

Can someone suggest a code that accepts (hh:mm:ss) and counts down until all variables reach 00

Member Avatar for Hiroshe
0
679
Member Avatar for george.iasthai

I want to change text and background color without clearing the screen. Ive used this code but it always clear the screen. mov ah, 2 ; use function 2 - go to x,y mov bh, 0 ; display page 0 mov dh, 0 ; y coordinate to move cursor to …

Member Avatar for Schol-R-LEA
0
9K
Member Avatar for dendenny01

Here is the simple program for addition when running in tasm it gives some garbage value and I cannot figure out what is the error hi Please any help will be apperetated Thank you .model small .data opr1 dw 1234h opr2 dw 0100h result dw 001 dup(?),'$' .code mov ax,@data …

Member Avatar for DeanMSands3
0
574
Member Avatar for yaya1234

We received a project to make calculator in assemly I want to check the result of the numbers actually in the range. that I don't have pverflow or undeflow. But it does not work .. Can you let me know where the problem so I could fix? here is my …

Member Avatar for yaya1234
0
147
Member Avatar for boxes2
Member Avatar for Schol-R-LEA
0
134
Member Avatar for boxes2
Member Avatar for rubberman
0
98
Member Avatar for boxes2
Member Avatar for rubberman
0
79
Member Avatar for boxes2
Member Avatar for rubberman
0
84
Member Avatar for boxes2
Member Avatar for rubberman
0
72
Member Avatar for Pyler

Are these two instructions equivalent, i.e do they both do the exact same thing? `addi $s0,$s0,0` and `add $s0, $s0, $zero`

Member Avatar for Hiroshe
0
244
Member Avatar for shahhussainit

Need a Program in assembly language which uses BIOS interrupt INT 21 to read current system time and displays it on the top-left corner of the screen. shahhussainit@gmail.com

Member Avatar for DeanMSands3
0
329
Member Avatar for SpottyBlue

Can help? I totally cannot do assembly code. It's part of my lab tutorial. I wanted to convert this C++ code into assembly: for (a = x; a <= y; a++) { prime = 1; for (b = 2; b <= a / 2; b++) { if (a % b …

Member Avatar for AceStryker
0
230
Member Avatar for Jack_9

I Assembly even worth learning if your not going to be developing the root of an os? I've considered it but it just seems worthless.

Member Avatar for AceStryker
0
207
Member Avatar for silvercats

1. An assembly instrction is converted into binary, also known as the machine code by the assembler. And it contains only 0s and 1s yes /no? 2. Then, the microcode handles the 1s and 0s of the assmelby instrcution that was convereted before. Yes or no? 3. Does the processor …

Member Avatar for Schol-R-LEA
0
427
Member Avatar for SpottyBlue

I have a problem with my code. I suppose to input a string ans output to all caps. But then, I output is nothing. ![09219e4acd73eb0184487c54b207c04f](/attachments/large/4/09219e4acd73eb0184487c54b207c04f.png "09219e4acd73eb0184487c54b207c04f") TITLE LAB TUTORIAL 1 .model small .stack 100h .data msg1 db "Enter a string: $" msg2 db "Output: $" msg3 db "Number of characters: …

Member Avatar for DeanMSands3
0
285
Member Avatar for SpottyBlue

Hey, I'm new to assembly 8086 progamming and don't know much of the code. How do you change the input string to all caps and show the number of characters without counting the spaces? > Enter a string: Doraemon rules!!! > Output: DORAEMON RULES!!! > Number of characters: 16

Member Avatar for SpottyBlue
0
303
Member Avatar for MasterHacker110

I was wondering something, I know that on windows you can't interact directly with the hardware, you have to use the system API. Now in Linux in the other hand, it looks to me if this can actually be done, or am I wrong? The thing reason why I say …

Member Avatar for mathematician
0
242
Member Avatar for silvercats

JNZ checks if the Zero flag is set or not. How does it really check it? more assembly instructions? I thought Assembly doesn't hide anything.

Member Avatar for mathematician
0
169
Member Avatar for eraphine

the problem is that when it run, it outputs the not msg, which is a wrong statement. the problem is with the declaration or cmp? jmp start msg db "c is equal to a divide b.$" msg_not db "c is NOT equal to a divide b.$" start: mov ax, 41 …

Member Avatar for Assembly Guy
0
123
Member Avatar for pspwxp fan

Hi Daniweb, I am working on an assignment that is aimed to help us understand floating points. The current task is to take a number as input, example 3.5, or 2.25 etc and output it as a binary decimal, ex 11.100000000, 10.0100000000. To do this, I am taking the whole …

Member Avatar for pspwxp fan
0
338
Member Avatar for lim.charmender

As the title says. I have tried FreeBSD's stack structure but it looks as though Mac does not use that structure. Also, how could I get their value into a particular register (ecx)? Thanks in advance!

Member Avatar for lim.charmender
0
262
Member Avatar for jack_7

How I can increase size of stack in assembly (NASM OS X intel64) I used **.STACK 4096** before **section .data** but return this error error: attempt to define a local label before any non-local labels error: parser: instruction expected Please guide me.

Member Avatar for Hiroshe
0
332
Member Avatar for Za3mi

I am a new to assembly and i am asked to multiply two 3x3 matrices and then show the given result. I am having problem in multiplication as mov al,5 mov bl,6 imul bl but how to print it?? i know the result will be in ax register but i …

Member Avatar for Za3mi
0
2K
Member Avatar for Pinky_1

please provide me a code for telephone directory in emu8086. its my project,and i am very tensed about it. just a simple program. please help this girl.

Member Avatar for LaxLoafer
0
239
Member Avatar for jack_7

hi , please convert this block code to intel syntax ( nasm) xorps %xmm0, %xmm0 movaps %xmm0, -64(%rbp) movb $2, -63(%rbp) movl $3103850762, -60(%rbp) movw $20480, -62(%rbp) leaq -64(%rbp), %r14

Member Avatar for untio
0
357
Member Avatar for jonny93

I have a project due soon, and I am having trouble with it. Here is my code: ` #include "msp430.h" ; #define controlled include file NAME main ; module name PUBLIC main ; make the main label vissible ; outside this module ORG 0FFFEh DC16 init ; set reset vector …

0
181
Member Avatar for shaheer21

Hello i am new to assembly please help me i want to write a program in Linux assembly which can multiply and divide real binary and hexa decimal numbers(e.g 11010.11001 & A56.B5). . Please help me as soon as possible i will have to submit the assignment by tuesday please …

Member Avatar for Assembly Guy
-1
125
Member Avatar for pspwxp fan

Hi Daniweb, I'm new to Assembly level programming and have been given an assignment in MIPS. Having started to plan the assignment, I have come to a rather open ended question that I want your opinion on: given that one has only so many registers to work with on Assembly …

Member Avatar for Schol-R-LEA
0
287
Member Avatar for moaz.amin.37

i need some information about the Assembly instruction in processor iapx 8088. if there is any link of any articles that can help me then plz send me this is my assignment. And i want good grades in my assignment.

Member Avatar for Schol-R-LEA
0
177
Member Avatar for user12567

I'm trying to find all the prime factors of an inputted number. I was given the following Java code to convert to assembly. String getFactors(int number) { String answer = ""; for(int factor=2; factor <= number; factor++) { if(number % factor == 0) { answer += factor + "*"; number …

Member Avatar for Schol-R-LEA
0
212
Member Avatar for kswag18

Can someone please write this program for me? Your program will accept as input only unsigned integers in the range 2 .. 65535. If the user enters a value that is invalid, your program must print a helpful error message and prompt the user to enter a new integer. Your …

Member Avatar for Schol-R-LEA
-2
728
Member Avatar for C-Money

I am attempting to do some Boolean algebra for my computer organization class. I have gotten the first seven problems done, but for the last four, I am confused. The question for all of them is the same- 'Simplify each expression to Minimal Sum of Products form. Show each step …

Member Avatar for iamthwee
0
162
Member Avatar for Labdabeta

Hello, I have learnt a few assembly languages (MIPS/x86/ARM/MIX) and I have a question about the call stack. Each of those languages uses a different method for subroutine linkage, and the way I learnt them was not conducive to recursion. Granted, if I continue reading my copy of The Art …

0
177
Member Avatar for jingo1126

ok i have this problem in mind i wanted to try but i cant figure out whats wrong with my code..the program lets you input a string of integers then press another input as target..The target is then cmp to the string..the output should place lesser values on the string …

Member Avatar for Assembly Guy
0
5K
Member Avatar for mark anthony_1

how can i make a file handling program in tasm using a far jump any comment and suggestion please?

0
63
Member Avatar for Patrick_3

Hello, I have another question about dynamically compiled code. I am using the VBCodeProvider class to compile, test, and run "scripts" that users type into my program (Code Below). Public Function Compile(ByVal vbCode As String, ByVal argsString As String) As Object Dim oCodeProvider As VBCodeProvider = New VBCodeProvider ' Obsolete …

Member Avatar for xrjf
0
598
Member Avatar for user304795

I'm a novice to MIPS I'm trying to develop a program which takes an input from a ten word array, increments it by two, stores the result back into a register $v0. Which will hold the incremented value. The program should stop when it encounters a value of 0 from …

Member Avatar for Schol-R-LEA
0
6K

The End.