2,888 Topics
| |
this is a calculator in asm using tasm..this works fine but the problems i want to fix are: 1.remove the division part(add,sub,and multi are required). 2.i want to remove the menu, when i run the program it should show up directly to the input part. 3.i want this thing [+][-][*] … | |
Dear all, i am soon entering 11th grade and will be studying c++ in full length. I want to learn another language to compliment it which can provide me the freedom to over a variety of devices and paltforms. I have chosen asm(assembly) as i think it very basic to … | |
title Lab_Tutorial_1 .dosseg .model small .stack 100h .data input db 99 dup(0) msg1 db 0ah, "Enter a string (max of 99 characters) : " ,0ah,0dh, '$' msg2 db "Filtered result : " ,0ah,0dh, '$' msg3 db "Number of alphabets : $" msg4 db "Press any key to end.....$" blank db … | |
hi guys I just want to ask what's the purpose of mov bl and mov cl in assembly? It would be easier to understand if you will also include some examples. Thank you to those who will help I'd really appreciate it. :) | |
This code will not work on EMU8086 or any processor prior to 80286. Line 40 would need to be changed. | |
Hi. I have this example for an lab and I don't understand what's happening. Especially what MEM32[0] means... DATA SEGMENT MEM32 DD 316423 DATA ENDS CODE SEGMENT … … MOV AX, 43981 SUB DX, DX ;load dx ax 43981 ADD AX, WORD PTR MEM32[0] ;add inf. word ADC DX, WORD … | |
I have a problem with creating a loop that swaps every two bits. The general idea is this (without loops): JMP START N: equ 8 Data1: DB 03h, 23h, N, 34h, 2Bh, 6Fh, 8AEh, 24h, 1EAh START: LDA N MOV D, A LDA $4203h MOV B, A LDA $4204h STA … | |
How can I perform Division in Marie Assembly Language? The functions available in Marie programming are for Addition and Subtraction. Any help will be appreciated. | |
I would like to know about the following code, could anyone tell me, please? .text:004027A0 sub_4027A0 proc near ; CODE XREF: sub_401010+118-p .text:004027A0 .text:004027A0 var_404 = byte ptr -404h .text:004027A0 .text:004027A0 sub esp, 404h .text:004027A6 lea eax, [esp+404h+var_404] .text:004027A9 push 1 .text:004027AB push eax .text:004027AC call sub_401CC0 .text:004027B1 add esp, … | |
Hi fellas, I have a question about disassembled code. I have a very simple assembly code that prints "Hello world" to screen. When I disassembled it by using nasm(ndisasm), I got a text file. After that I opened it and started to analyze it. However, in a section that comes … | |
;Read and array of positive numbers.Create two arrays one containing numbers in the interval [120,130] and the ;other one outside this interval. data segment para public 'data' sir db 1,2,120,140 len dw $-sir sir1 db 6 dup(?) sir2 db 6 dup(?) data ends code segment para public 'code' start proc … | |
This is my code and every time i add 2 numbers there's an excess number digit 1 on result can someone help me? .model small .stack 200 .data msg db 10,13,'Enter first no. : $' msg2 db 10,13,'Enter second no. : $' msg3 db 10,13,'Answer : $' .code start: mov … | |
Hi everyone I wish a happy new year for all. This is the code that i wrote so far. TITLE MASM Template (main.asm) ; Description: ; ; Revision date: INCLUDE Irvine32.inc INCLUDE macros.inc Employee STRUCT idnum BYTE "0000",0 lastname BYTE 30 DUP(0) years WORD 0 Employee ENDS .data workers Employee … | |
hello, I want to interface gsm sim 300 modem to AT89c51 to send sms. for that i need assembly language programming. so can anybody please share the code? or please tell me the link to get that one. thank you, | |
Hello, I am proficient in assembly language of the Free-scale line of microprocessors and I would like to learn other brands. Can anyone please tell me if there are any other brands of microprocessors, demo-boards, or IDEs that allow programming in assembly? If you know of a specific hyperlink please … | |
I recently bought this book online used, it came with no CD. Many of the code examples in this book rely on some file called IO.h that apparently came with the CD. I downloaded this file and I still get many errors. Does anyone have these files, or do I … | |
Dear Friends, i need the code for Digital Clock using 8086 in assembly language.. please help me.. i know nothing about assembly.. Please help me somebody i have found a code but its not working properly. please let me know if you want to explain the code, i'll provide it.. … | |
hello, this is my code and for some reason it does not work :/ could someone tell me whats going wrong? ;sum of all powers of 2 lower or equal to 2^n ;example n=4 => 2+4+8+16=30 .386 .model flat, stdcall option casemap: none include \masm32\include\windows.inc include \masm32\include\masm32.inc include \masm32\include\kernel32.inc includelib … | |
when i run my code in emu8086 i have error "opcode not supported yet" so what should i do in this case and pls try to run in emu8086 to check if it work properly or not cause i spent alot of time to fix the code but i couldnt … | |
I have started using emu8086 and since I’m new to this I got stuck with my project that I have to submit till Friday :((( I need to make a program in assembly that counts how many words in a given sentence are palindromes: For example: Dad loves mom (in … | |
mov eax,'ZYXW' Now there are 3 problems. in Hexa W=57,X=58,Y=59,Z=5a Debugger shows this as 1515804759 in Decimal. that is when 5958595a taken as a whole. why doesn't it show 87888990 like when they are take separately? 2. Why is it shown as 5a,59,58,57 rather than 57,58........ ? (because W=57 which … | |
Data Segment arr1 db 8,2,7,4,3 Data Ends Code Segment Assume cs:code, ds:data Begin: mov ax, data mov ds, ax mov es, ax mov bx, OFFSET arr1 mov cx, 5 mov dx, cx L1: mov si, 0 mov ax, si inc ax mov di, ax mov dx, cx L2: mov al, … | |
Hey Guys, I'm extremely new to the coding in Assembly language MIPS - currently I'm using QtSpim. And I was wondering how I can go about multiplying two numbers that I input and display that number, as well as, find an average of numbers and displaying that. Any info would … | |
So I am using spim and I am trying to figure out how to take a users input say "16" and then print it as 9 digit binary number. for example 16, 000010000 or say 4, 000000100, 67 01000011 etc etc always 9 spaces and in binary. I have all … | |
Hello, I've been working on this code for a while and I can't get it to display A to a(Uppercase to lowercase) as well as lower to upper, a to A. I've looked around and found suggestions on here and googel from other similar threads that I've tried but none … | |
i need explain for that bits 16 arr db 0x5,0x1,0x3,0x2,0x7,0x3,0x6,0x4,0x9,0x5 arr_e equ $ i dont know how to make look up table in emu8086 and i dont know whats meaning of bits 16 and "arr" is a file on pc or it's a normal word in a code in the … | |
Hello everyone, I write code in assembler, which subtracts two numbers. I need advice on how to modify the code subtracted from a positive number to a negative number. For example: 826-(-621) = 1447 Thanks for you advice ; 826 = 0x33A, 961 = 3c1 ; 576 = 0x240, -621 … | |
I am trying to figure out the way to use the nested loop in a proper way but so far i am failed, The loop run to infinity when i run the program which i definitely don't want to do, here is my code, .MODEL SMALL .STACK 100H .DATA var1 … |
The End.