2,888 Topics

Member Avatar for
Member Avatar for masoude
Member Avatar for bryan.casin

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 [+][-][*] …

0
991
Member Avatar for sandheer.sannidhya

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 …

Member Avatar for rubberman
0
239
Member Avatar for wolfmanemil

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 …

Member Avatar for deceptikon
0
235
Member Avatar for king03

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. :)

Member Avatar for deceptikon
0
65
Member Avatar for ShiftLeft

This code will not work on EMU8086 or any processor prior to 80286. Line 40 would need to be changed.

Member Avatar for mathematician
0
539
Member Avatar for chira.laura.9

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 …

Member Avatar for mathematician
0
493
Member Avatar for lios1984

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 …

0
81
Member Avatar for Rameses

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.

Member Avatar for konbleck
0
6K
Member Avatar for bazzer14

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, …

Member Avatar for bazzer14
0
376
Member Avatar for kemaletikan

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 …

Member Avatar for 010101
0
2K
Member Avatar for tudor.laze

;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 …

0
61
Member Avatar for MistIgnite

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 …

0
78
Member Avatar for whitech

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 …

Member Avatar for ShiftLeft
0
249
Member Avatar for amit251291

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,

0
54
Member Avatar for mafarjehr
Member Avatar for bill haygood

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 …

Member Avatar for deceptikon
0
211
Member Avatar for Gink

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 …

Member Avatar for deboflo
0
643
Member Avatar for scetian

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.. …

0
248
Member Avatar for jannesb1

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 …

Member Avatar for jannesb1
0
212
Member Avatar for MRmicro1

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 …

Member Avatar for MRmicro1
0
137
Member Avatar for femaler2d2

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 …

Member Avatar for femaler2d2
0
154
Member Avatar for silvercats

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 …

Member Avatar for silvercats
0
160
Member Avatar for Mirza92

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, …

Member Avatar for Mirza92
0
125
Member Avatar for Harley_Quinn

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 …

Member Avatar for Harley_Quinn
0
144
Member Avatar for calvintmoss

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 …

Member Avatar for sbesch
0
386
Member Avatar for bobby2525

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 …

Member Avatar for sbesch
0
1K
Member Avatar for MrMicro

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 …

Member Avatar for sbesch
0
220
Member Avatar for Alda1992

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 …

Member Avatar for sbesch
0
149
Member Avatar for Xufyan

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 …

Member Avatar for sbesch
0
3K

The End.