2,889 Topics
![]() | |
Hi, Why this program in not working ? It doesn't print anything . [code] Page 60, 132 TITLE Reverse characters(EXE) ;---------------------------------------------------------------------------------------- .MODEL SMALL .STACK 64 ;---------------------------------------------------------------------------------------- .DATA STR DB 'txeT desreveR$' ;---------------------------------------------------------------------------------------- .CODE REVERSE PROC FAR MOV AX, @data MOV DS, AX MOV ES, AX LEA BX, STR MOV SI, … | |
i have a custom made program that is being used to create layouts for harnesses assembly the program is too old obsolete if i may say and the company refuses to renew or replace with auto cad anyway the problem is files created by such program cannot be opened in … | |
Hi I must to do a program capable to order a vector of integers, and calculate the mean and median values of the vector. Also the vector integers is initialized and has a fixed size of 20 elements, and the output data be made to the monitor. This is for … | |
hi , iam new asm and i heave problem exercise the exercise: 1-Make a data file named "file.txt" with 10 integers, each on a separate line and each between 0 and 160. 2. Write an assembly program which does the following: a. looks for the above file in your working … | |
Write a program to find the product of two 8-bit numbers (Multiplication) and give the status of all flag registers? | |
how about a full length basic tutorial for newbiez!?? like me. | |
I am new to nasm and I need to write oprogram that reads (user input) numbers 0-3000 and converts them to roman numbers. So the user inputs a number between 0-3000 and the the program converts it and outputs the corresponding roman number. Please help!!! | |
First of all, hi to everyone. I need help with an assignment, need to translate this C code to assembly. im getting pretty desperate and thats why im turning to outside help... This code is suposed to calculate sqare roots of 16bit numbers, and is to be implemented on another … | |
Where can I find a program which can record image/Binary on pendrive ? | |
this code was written by me for my projects. all it does is increments by 1 the string which is passed to the function. if you have any improvements to my code ill be glad to hear from you ;) | |
im new to assembly and have an assembly project to convert arabic numbers(1,2,3,,,,) to roman(V,x,m,IV,,, etc )or ( roman to arabic) i dont know how to start this ,knowing some ideas to do but!!still need heeeeeeeelp | |
I have an exercise in my university an it is very important!!! I have a message file with this inside (22ΓAΓAP__ΓPΓP΄_΄_¥P¥A¥A΄2΄2¥2–A–A‡2‡2x2iAiAxPxPi_i_x_‡P‡P–_–n–}–}‡n‡nxni}i}xxi›i›x›‡‡–›–›¥›΄΄¥}¥n¥n΄}΄}ΓnΓn}ÛÛ) 128 numbers 1 byte each one and another program a genarator of random nymbers (random.asm) .model small .stack .data crypto db 16 dup (0) .code mov ax,@data mov ds,ax … | |
Hello there, I am trying to self-learn some Assembly and just picked up The Shellcoder's Handbook. There is a short C program regarding a triangle in Ch. 1: [code=C] int triangle (int width, int height){ int array[5] = {0,1,2,3,4}; int area; area = width * height/2; return (area); } [/code] … | |
I've have tried to make a function that reads process memory in another process. I have made a function that writes memory which works perfectly, but when i run the function ReadProcessMemory it comes with the error: "Access Violation". The weird thing is it works fine when I do it … | |
Hello! I am enjoying trying to learn assembly, I would like to do a code that get from program args numbers and put them in an array. Then I need to print them all. But I cant get it to work, I guess I am making something wrong with array … | |
Here is my awful attempt at converting this: [code] int a=0; if(a!=80) { a+=1; } [/code] to assembly (NASM): [code] push cx mov cx, 80 loop: je short endloop mov al,0xDB call kputchar add word [d],1 cmp cx,[d] endloop: pop cx ... d dw 0 [/code] I am not very … | |
I'm looking at a thread info block at fs:[0] and everything looks fine, except the stack base and limit are $50000 and $70000, which are okay, as I asked for a stack size of $20000. HOWEVER, the actual ESP is up at $02EExxxx and I can follow the stack chain … | |
Hey! I was wondering should I learn assembly as I know C++ pretty good now and I look forward to new things to learn. I remember someone said that you should learn assembly then you know really how to program. So what help assembly could provide to me, is it … | |
Hi , these days I'm reading the brans kernel development tutorial. and doing it's particles. So last I find to had to read Intel 80386 programmers manual by intel. In section 2.6 Interrupts and Exceptions I asking a theoretical question here. They said Exceptions are synchronous and Interrupts are asynchronous. … | |
Can someone run my mips code? I'm using pcSpim as my simulator The issue I'm having is that it doesn't correctly output the number of othercharacters. Other characters would be like !@#$%^&*()_+-=.,<>?/ \ The other problem I'm having is that it doesn't output the number of characters there are in … | |
I need help with my code. this is a simple calculator. My addition seems to work fine. but in subtraction, when the answer is only one digit.. the first digit seems messed up. Special character shows up. This program is supposed to be accepting 2 digit number, example 02 + … | |
Hello everyone, I am new to assembly, and I am trying to learn it. I was given a book by one of my professor to read over the Holidays unfortunately the book assumes basic knowledge in Assembly (BTW, the book is "See MIPS run linux") I just have some basic … | |
a) If the content of d0 is $30 state in words what each of the following numbered instructions will do when placed immediately after the test instruction below tst d0 a) bne fred b) If the content of d0 is $30 state in words what each of the following numbered … | |
Okay so I working on this program where I have to input a string and then display the character distribution in that string. For example: if the input is “[B]minecode[/B]” the output should be C – 1 O – 1 D – 1 E – 2 I – 1 M … | |
plz any help in this code in assembly by emulator8086 [B] the code about[/B] a classroom has 25 students their numbers and grades in the microprocessor course are stored in the memory .it is required to rearrang them in descending order according to their grades. the inputs are two tables … | |
hello everyone how to play sound via PC internal speaker? using emu 8086. example: musical note use 61h, 42h ports. how to work IO ports. please | |
can u help me with this problem: Write a program that will be able to examine every character in a string to see if matches the character supplied by the user. i. Ask for an input string (up to 4 characters) from the user. Display each character to the screen … | |
Hi Every one i need 3 program below assembly code or their algorithms;please help me : [B][COLOR="Red"]1- Multiplying two 10 digit numbers 2- Dividing two 10 digit numbers 3- Square two 10 digit numbers[/COLOR][/B] please help love you thanks | |
i want to make a car waiting meter program using microprocessor assembly language , in the car parking a car waiting is used the drive puts a mount of money and this meter will allow him to park his car for a specific time 1pound=5minutes ,5pound=30min , 10pound=60min if the … | |
sorry for this interruption.. May i ask you sir about our project.? It is a round medicine organizer that will alarm at a specified time that the user set. It's like a pizza pie that has 7 pies (compartment of the medicine). This what we want to happen. When the … | |
Hello Everyone, i'm new to assembly language programing i would like to write a program that will print prompts to enter two values and a code #. If the code # is 1, output the greater of the values.... otherwise it should output the lesser here is what i have: … | |
Consider the following C++ program fragment: [CODE=c++]int a[1000]; int b = 0; for (int i = 0; i != 1000; i++) { b = b + a[i]; }[/CODE] (a) Write a MIPS assembly program which corresponds to this program fragment. (b) Unroll the loop in the program 4 times in … | |
Hi everyone. I'm fairly new to programming with spim. This is the first time I've tried to multiply numbers and I keep getting errors! I looked up on 'SPIM quick reference' how to do multiplication but can't get it to work. Any help would be greatly appreciated :) PS. I … | |
please can any one help in this by mips :(quickly) You have to write a MIPS program that multiplies two 3x3 matrices. The two matrices are defined for you in the code. The program then prints the two matrices and their product. You should use loops to navigate through the … | |
Hi there if there is anyone who read this I need help with my project, and sorry for my english :) I"m working on a Stop light project where I need to light up 3 LEd like a stop (traffic) light , The LED are conected to the PC by … | |
Hello, can someone help me to figure out how i can print the content stored in si ? suppose i did: sub si,si inc si ---> repeated this few time. how can i print the number in SI on the screen? | |
| |
Pls anyone tel a good tutorial site to learn turbo assembly language | |
what would be the recursive implementation of the following c program: int fact(int n) { if (n == 0) return (1); else return(n*fact(n – 1)); } | |
please can anyone help me with this homework i do not know what to do. thank you 1. Write a program that will count from any user-inputted number to 0. For example, if the user inputs 5, the program should output: 5, 4, 3, 2, 1, 0. | |
Hi, i'm new in this forum and i need help with mips assembly. I wrote this code but i can't found the error. [code]#Convert from decimale base to binary one using recursive procedure .data prompt: .asciiz "Insert decimal number: " output: .asciiz "The number in binary base is: " .text … | |
[CODE] ;==================Prompts=============== warning db "Invalid order. The dividend should be greater than the divisor",0 prompt1 db 0dh,0ah,"Please enter a dividend ",0 prompt2 db 0dh,0ah,"Please enter a divisor ",0 Display db 0dh,0ah,"Quotient: ",0 Display2 db 0dh,0ah,"Remainder: ",0 ;==================Variables============= dividend word ? ; Holds the dividend divisor word ? ; Holds the … | |
Compile this with NASM16 (Must be compiled in .COM format!) It will display all 256 colors usable by the BIOS in a neat rectangle that contains 16 columns, 17 rows (Just counted, it may be different). KNOWN BUGS: If you enter FULLSCREEN or run this program from a DOS operating … | |
suppose the array is arr1 dB 5H,8H,1H,3H,6H then how do i display it using tasm | |
Ok I have an assignment that requires me to create 3 macros to do 3 different function. I have the first one completed but the 2nd two are giving me some trouble. #2) Write a macro that takes in 2 32-bit integers and divides the first from the second and … | |
STDOUT equ 01h get_date equ 02ah get_time equ 02ch write_handle equ 040h terminate equ 04ch DOSINT macro function, subfunction IFB <subfunction> mov ah,(function AND 0ffh) ELSE mov ax,(function SHL 8) OR (subfunction AND 0ffh) ENDIF int 21h endm Delay macro local ulang local ulang2 push cx mov cx,50000 ulang: push … | |
I am totally lost when it comes to assembly language. My teacher just decided one day at the end of this semester to give us a programming assignment in assembly language and has barely taught us anything. I have to use five subroutines: main, add, subtract, multiply, divide and cannot … | |
So I have two MAL programs that I am getting 2 errors in each of them. I am using xSpim on unix to run this program. I wrote this using the windows version PCSPIM which compiled the program and ran it flawlessly. But when I tried to run it using … | |
Here is my assembly lang program. [CODE] mov dh,0 C: sub bl,cl mov al,bl mov ah,0 mov bh,2 div bh cmp ah,0 je A mov al,cl mov ah,0 mov bh,2 div bh A: mov al,cl add dh,al add bl,cl add cl,1 cmp cl,bl jle C[/CODE] I am trying to convert … | |
Hello, My name is Marcel and I am new on this forum, I have a question about the following: I am working on a 16 bit application for a AM186ES processor (x86 compatible), this processor has no internal ROM or RAM. My application will be stored on a PC-Card from … |
The End.