Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
94% Quality Score
Upvotes Received
14
Posts with Upvotes
12
Upvoting Members
12
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
3 Commented Posts
0 Endorsements
Ranked #864
~91.0K People Reached
Interests
Coding in Assembly! SIB!

80 Posted Topics

Member Avatar for b1izzard

That 16bit code in the .code section will/should work with any 16bit assembler that uses Intel syntax which NASM/NASMX uses... What you need to find out is the differences in sections between TASM and NASM, and the differences in the header of the asm files. FASM works on Linux, you …

Member Avatar for deva_2
0
1K
Member Avatar for Idestruction

[QUOTE]What is the lea instruction? And how does that translate to NASM?[/QUOTE] there is no translation. It is a CPU mneumonic on x86 it means load effective address

Member Avatar for John_310
0
23K
Member Avatar for NewbieChameleon

How would you fix it if you wanted the entry point of your program to be NewbieChameleon? You would use the -e or --entry command line option for ld: -eEntryPointLabel --entry=EntryPointLabel I use a makefile and used this for an example and 64bit O: ld -o $(APP) $(APP).o -melf_i386 -eNewbieChameleon …

Member Avatar for Kaveri_2
0
910
Member Avatar for Roger_2

First thing, arraylen does not contain what you think. It contains 20: 5 dword sized elements. To get the number of elements divide by 4 ` arraylen equ ($ - array) / 4 ` Next, you cannot print a number, you first need to convert it to ASCII. For your …

Member Avatar for Roger_2
0
14K
Member Avatar for damico.luca91

You need to install the 32 bit libraries: ia32-libs or ia32-libs-multiarch With your package manager or: > sudo apt-get install ia32-libs

Member Avatar for GunnerInc
0
214
Member Avatar for recher_14263

It really is not hard at all to use libcurl. You read the [docs](http://curl.haxx.se/libcurl/c/) pass some parameters and call the functions. The following simple code will get googles robots.txt file and display it in the terminal. It is 64-bit using NASM tested on Linux %define CURL_GLOBAL_SSL (1<<0) %define CURL_GLOBAL_WIN32 (1<<1) …

Member Avatar for GunnerInc
0
1K
Member Avatar for xcarbonx
Member Avatar for lupacarjie

Nobody is taught to use comments anymore? It is so important to comment your code in Assembly, ESPECIALLY in ancient 16bit code where functions don't have names but numbers!! Your getting weird characters because after you get the input character, you are modifying it by adding 20h to `dl`. To …

Member Avatar for lupacarjie
0
9K
Member Avatar for Echo89

Your program starts executing at the start label and goes right to the WinProc, this won't work since you have not registered the window class yet. Move this: invoke GetModuleHandle, NULL mov hInstance, eax invoke WinMain, hInstance, NULL, NULL, 0 invoke ExitProcess, eax from the end to right after `start:` …

Member Avatar for GunnerInc
0
248
Member Avatar for aiwasen
Member Avatar for silvercats

What do you think the answer to no.1 is? The answer to no.2 is in the AMD and INTEL manuals of course and plenty of docs on the net. Do you know what a "register" is? All it is, is memory directly on the CPU die, which makes it the …

Member Avatar for mathematician
-1
277
Member Avatar for Huck44
Member Avatar for GunnerInc
0
180
Member Avatar for peterbob

You will never compile it! You Assemble and Link. Your stack is a MESS! Your pushes are not paired with pops. For every push you should have a pop or adjust esp manually. where is this address > 0xb7? Why use a hardcoded address? use a label. It won't print …

Member Avatar for peterbob
0
295
Member Avatar for AlitaMixx

You don't need many buffers. You have one buffer for your input right? That is all you need. Write a conversion function (or find one on the net, but you will better yourself writing it on your own) that takes a pointer to your input buffer, and goes thourgh each …

Member Avatar for GunnerInc
0
992
Member Avatar for jefanot

Go to preferences and select the terminal tab. Uncheck "Follow the path of the current file" Check "Don't use run script" and to use the Geany terminal, check "Execute programs in VTE"

Member Avatar for GunnerInc
0
104
Member Avatar for 4344

What does "I can't run my program" mean? What errors are you getting? Why are you using an emulator? Do you not have an INTEL PC?

Member Avatar for GunnerInc
0
127
Member Avatar for st_infamous

2 things: 1. All of this code: FullVertWait: mov dx,3dah vr: in al,dx test al,8 jnz vr ; wait until Vertical Retrace starts nvr: in al,dx test al,8 jz nvr ; wait until Vertical Retrace Ends add word[count1],1 add eax,0 ret Delay: mov word[count1],0 ddf: call FullVertWait cmp word [count1],700 …

Member Avatar for GunnerInc
0
141
Member Avatar for silvercats

Yes there IS a really BIG difference writing 64bit Assembly code verses 32bit code. Especially when it comes to Windows Programming (I am sure Linux is the same). You have a different calling convention, "shadow space", more memory addresses, more registers, stack should be/has to be aligned. Learn 32bit first …

Member Avatar for silvercats
0
168
Member Avatar for DeanMSands3

Well, if you like MASM take a look at JWASM. It is fully MASM compatable (Meaning if you have an app written in MASM, JWASM will Assemble it without many complaints) Plus, it is 64bit compatible AND cross-platform

Member Avatar for DeanMSands3
0
223
Member Avatar for iPanda

Logic is a bit wrong. No need for the variables biggest or counter. si = counter and di = biggest This should work: [CODE] mov cx, 32 NextOne: shr a, 1 jnc ItsZero mov si, 0 jmp Next ItsZero: inc si cmp si, di jbe Next mov di, si Next: …

Member Avatar for GunnerInc
0
113
Member Avatar for kikic

Think of your matrix like this: it does not look like this in memrory [CODE] 1 2 3 4 5 6 7 8 9[/CODE] it looks like: 1 2 3 4 5 6 7 8 9 (spaces added for clarity) So, load the array, print the first number then add …

Member Avatar for kikic
0
5K
Member Avatar for rithish

Actually, you cannot run Turbo C or any DOS programs in Windows 7 and above as DOS is dead an not included in any current version of Windows. If you really want to use Turbo C with Windows 7, then you should download a DOS Emulator such as DosBox or …

Member Avatar for Schol-R-LEA
0
409
Member Avatar for Diogo Martinho

What Assembler? In MASM [CODE]MyInt DWORD 3 MyIntPointer DWORD MyInt[/CODE] [CODE] mov eax, MyIntPointer mov eax, [eax] PrintDec eax[/CODE]

Member Avatar for Diogo Martinho
0
74
Member Avatar for datdude07

Works for me: [CODE]1,1,1,1 2,2,2,2 3,3,3,3 4,4,4,4 5,5,5,5[/CODE] :-) You are telling WriteFile to write 40 bytes (your buffer size) so it will write what you grab from the console, write them to file then write nulls. That second CreateFile is NOT needed! You already created the file, and have …

Member Avatar for datdude07
0
154
Member Avatar for baldwindc

Usually the value is returned in R0. So in your sumR, after you do your stuff, place what you want myvar to equal in R0

Member Avatar for GunnerInc
0
709
Member Avatar for meowbits

Sounds similar to a question asked here before in this thread. [url]http://www.daniweb.com/software-development/assembly/threads/386136[/url] my reply is there also :)

Member Avatar for meowbits
0
228
Member Avatar for Kerok

Few things, why do folks who use Irvine, not use the correct case for the function calls? There is no such function as CRLF, instead it is Crlf. I don't know how the Irvine users don't get errors when Assembling! Put your 2 buffers in the uninitialized data section - …

Member Avatar for Kerok
0
979
Member Avatar for datdude07

Uh, = is not equals it should be 2 equal signs == as in (ecx == 0) || (ecx == 2) etc... The funny thing with macros (yes .if/.while are macros) is the error number will happen after the macro call...

Member Avatar for datdude07
0
227
Member Avatar for datdude07

Exactly what the error description says - you cannot nest procedures. Try this instead: INCLUDE Irvine32.inc [CODE] .data ccolor DWORD 13 bcolor DWORD 16 SetColor PROTO,cc:DWORD,bc:DWORD prompt BYTE "Hi",0 .code main PROC INVOKE SetColor,ccolor,bcolor mov edx,OFFSET prompt call WriteString exit main ENDP SetColor PROC,cc:DWORD,bc:DWORD mov eax,cc add eax,bc call SetTextColor …

Member Avatar for datdude07
0
450
Member Avatar for muzaheed

Ah, the Assembler Newbie mantra: I Need, I want, Give me the code! :) Auto-Completion is NOT an Assembler feature but an IDE feature, since you are using MASM, look for RadASM or WinASM both are good free IDE's for MASM When you Assemble with MASM it WILL show you …

Member Avatar for GunnerInc
0
106
Member Avatar for inagumi

Um, where do you want it displayed? On a billboard, command prompt, in the sky, DOS, in the dirt, windows? What OS does this display device use?

Member Avatar for inagumi
0
253
Member Avatar for datdude07

Er, um, you are not writing what you want to write to the file! [QUOTE] ; ; Writes a buffer to an output file. ; Receives: EAX = file handle, EDX = buffer offset, ; ECX = number of bytes to write ; Returns: EAX = number of bytes written …

Member Avatar for datdude07
0
2K
Member Avatar for sergent

That is because HLL instructions rarely convert to ONE mnemonic. It is only hard to read because you don't understand Assembly well.

Member Avatar for GunnerInc
0
134
Member Avatar for xcarbonx

First off, you can only multiply 14 or 15 times then the result is too big for a word register [CODE] mov ecx, 18 mov eax, 1 Mult: mov edx, 2 mul edx push eax push ecx push edx ; Print your hex numbers here pop edx pop ecx pop …

Member Avatar for AceStryker
0
138
Member Avatar for Rileyh

You downloaded "Flat Assembler"? That is FASM, your code is MASM. It WILL NOT assemble with FASM without some modifications.

Member Avatar for AceStryker
0
164
Member Avatar for bettybarnes

How do you think it would work in assembly? what mnemonic would you use to increment a variable/register? what mnemonic would you use to test to see if it is within bounds? what mnemonic would you use to jump back to the beginning? Wait, you don't like putting in any …

Member Avatar for AceStryker
0
321
Member Avatar for Eddrian

[QUOTE=Eddrian;1628936]thanks thines.. but it is not running in 8086[/QUOTE] What OS? If you are using Windows 7 the code WILL NOT work. Windows 7 does not run dos apps anymore. Might work by usind DOSBox or something similar

Member Avatar for thines01
0
343
Member Avatar for bettybarnes

If that is all the code you found,then it is incomplete.. Where is scan_num? It calls it, but it is not in the code posted

Member Avatar for thines01
0
1K
Member Avatar for Donald Njila

What did your teacher teach you about that? What do you think the stack is for? What do you think registers are for? Once you can answer both of those questions and see the similarities and differences, you will be able to answer your own question. Show some effort on …

Member Avatar for thines01
0
129
Member Avatar for bd338

I sure as hell won't help you "learn" how to do it, and I am sure there are many here that won't either. Please keep this crap out of DaniWeb

Member Avatar for Narue
-1
614
Member Avatar for bettybarnes
Member Avatar for Netcode

[QUOTE]People thinking before posting questions in software forums. Using CODE Tags. What a dream![/QUOTE] Yeah, that is a nice dream, unobtainable, but a nice dream :idea:

Member Avatar for iAssistant
0
94
Member Avatar for st_infamous

Have you tried?: [code] fmul st(2), st(0) fdiv st(1), st(0) [/code] There are no such registers st0, st1, or st2....

Member Avatar for GunnerInc
0
59
Member Avatar for st_infamous

Try adding a 0 in front of your hex number. it cannot start with a letter 0FFFFFF88H

Member Avatar for coffeeuncle
0
329
Member Avatar for UtaChan

Yes, in MASM you can use the sizeof operator: [CODE] mov eax, SIZEOF arr [/CODE] OR after you define arr, you can get the size using the $ char (I forgot what it is called) [CODE] .data arr db 1,2,3 ARR_SIZE equ $ - arr .code mov eax, ARR_SIZE [/CODE] …

Member Avatar for UtaChan
0
8K
Member Avatar for lochnessmonster

so, you want help reversing something? Ha. That is a bunch of high level crap, it is easier to figure out C than C++ with all its constructors and classes...

Member Avatar for Schol-R-LEA
0
752
Member Avatar for evil_iguana

? How did you get it working? What did you add/change to make it work? Please tell, so others have the same problem, they have a solution :)

Member Avatar for GunnerInc
0
897
Member Avatar for Labdabeta

Have you tried: [url]http://focus.ti.com/dsp/docs/dspsupporttnp.tsp?sectionId=3&tabId=2079&toolTypeId=1&familyId=44[/url]

Member Avatar for sergent
0
111
Member Avatar for billgateswannab

Start small, if you are a windows guy, create say a simple calculator with the Windows API... Now try converting that to use the *NIX GUI stuff... XServer, GTK, widgets etc... of course you have to use a cross platform assembler to make life eaiser.. NASM and FASM are cross …

Member Avatar for billgateswannab
0
237
Member Avatar for Nirmeen Ased

Nirmeen, if we do your homework for you, what do you learn? Nothing at all! You posted the formula: Tc =(5/9)*(Tf-32) Tc : Celsius Tf : fahrenheit So.... not the above formula but works.. Begin by subtracting 32 from the Fahrenheit number. Divide the answer by 9. Then multiply that …

Member Avatar for GunnerInc
0
109

The End.