-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm trying to develop a simple kernel using TASM, using this code:
; beroset.asm
;
; This is a primitive operating system.
;
;**********************************************************************
code segment para public use16 '_CODE'
.386
assume cs:code, ds:code, es:code, ss:code
…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
.model small
.stack 400h
.data
message db "hello. ", 0ah, 0dh, "$"
firstdigit db ?
seconddigit db ?
thirddigit db ?
number dw ?
newnumber db ?
anumber dw 0d
bnumber dw 0d
Firstn db 0ah, 0dh, "Enter first 3 digit number: ","$"
secondn db 0ah, 0dh, "Enter second 3 digit number: ","$"
messageB db…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
.model small
.stack 100
.data
.code
mov ah,00h
mov al,0e3h
mov dx,00h
int 14h
back: nop
l1: mov ah,03h
mov dx,00h
int 14h
and ah,01h
cmp ah,01h
jne l1
mov ah,02h
mov dx,00h
int 21h
mov dl,al
mov ah,02h
int 21h
jmb back
mov ah,4ch
int 21h
end
this a pc to pc…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
hi all , i am trying to read a string from user in TASM assembly , i know i need a buffer to hold the input , max. length and actual length , but i seem to forgot how exactly we declare a buffer
my attempt was smth like this
Buffer db 80 ;max length
db ? ;actual length
db 80 dup(0);i…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Please help me!
How i can output character that moves around the perimeter of a rectangle (10*5 or 15*7) in console with TASM?
.MODEL small
.STACK 100h
.CODE
start:
mov ah,03
int 10h
mov cx,10
A:
push cx
mov ah,03
int 10h
mov ah,02h
inc dl
int…
>>> More
-
as seen on Programmers
- Search for 'Programmers'
I'm currently studying engineering in Telecommunications and Electronics and we have migrated from assembler to C in microprocessor programming. I have doubts that this is a good idea. What are some advantages and disadvantages of C compared to assembly?
The advantages/disadvantages I see are:
Advantages:
I…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm a total beginner when it comes to computer languages, and was asked for a code to write .NET with assembler x86, and i'm stuck here at the moment.
Any basic code lines would work, still couldn't find any on the web.
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
One of the stated reasons for knowing assembler is that, on occasion, it can be employed to write code that will be more performant than writing that code in a higher-level language, C in particular. However, I've also heard it stated many times that although that's not entirely false, the cases…
>>> More
-
as seen on Programmers
- Search for 'Programmers'
Since a long time I have thrived for being able to program something I can take with me - a very small computer like a programmable calculator, gameboy, pocket PC or cellphone.
However, I didn't find anything fitting yet!
The thing I'm looking at is the price, because I can't afford to spend too…
>>> More
-
as seen on Programmers
- Search for 'Programmers'
I've been a developer since 2009 and I've learnt a lot of languages since, but I've always wanted to understand and be able to code in the lowest level language so I can directly (or at least very close to directly) speak to machines through my code.
There was a point in time when someone showed…
>>> More