Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+4
Strength to Decrease Rep
-1
100% Quality Score
Upvotes Received
5
Posts with Upvotes
4
Upvoting Members
5
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
3 Commented Posts
0 Endorsements
~18.8K People Reached
Favorite Forums
Favorite Tags
Member Avatar for ang19

[quote=Ancient Dragon;306252]Only two I can think of 1) academic purposes 2) on obscure os that does not have an assembler[/quote] Patches are frequently applied in machine code. NASA's procurement process for Space Shuttle flight software had the vendor providing a "signed off" image. Subsequent fixes after image sign off were …

Member Avatar for David_34
0
1K
Member Avatar for faith07

I'd write an assembler program that just printed out "Hello World" first. In doing that, you'll find you've built 70% of what that date printer does.

Member Avatar for neha afreen
0
1K
Member Avatar for cjwenigma

We're not going to do your homework for you. Show you made an effort, and then you may get some help.

Member Avatar for sohaibkassab
0
225
Member Avatar for 3xy
Member Avatar for aserfiotis

Just declare them like any other segment. What their attributes are will be diddled by protected mode code somewhere, not the assembler.

Member Avatar for aserfiotis
0
117
Member Avatar for eri_car
Member Avatar for Purple Avenger
0
78
Member Avatar for viivaakash

Almost everything executes faster on the 8086. It has a 16 bit bus rather than the 8088's 8 bit bus. The execution units on the two chips are identical. The only difference is bus width and depth of prefetch queue. The 8088 has a slightly deeper prefetch queue to try …

Member Avatar for Purple Avenger
0
677
Member Avatar for in7en7

maybe it wants: "offset message" ? Don't forget that DS needs to be set to the segment the message is in if this code isn't already running with DS=CS

Member Avatar for in7en7
0
243
Member Avatar for birdy

Use DL rather than DX. The group of functions you have to be calling (you didn't say which of several possibilities you're specifying in AH) don't use DH. A MOV to DX is 3 bytes, a MOV to DL is two. Could use '$' terminated string output API too (Int …

Member Avatar for Purple Avenger
0
78
Member Avatar for sillyboy

Almost all early DOS C compilers can generate hard 87 stuff or emulated 87'. Most assemblers can do it too.

Member Avatar for Purple Avenger
0
144
Member Avatar for mattyd

[quote=Ancient Dragon;296247]Since it requires a 100% rewrite of assembly language programs to port from one platform (e.g. 80x88) to another (e.g. AIX Unix), assembly language, by definition, is unportable.[/quote] You can always run the code in an emulator like BOCHS, Hercules, QEMU, etc... A modern x86 CPU can probably emulate …

Member Avatar for bootstrap
1
249
Member Avatar for jash00

Sounds like you should be kicked out of school if you waited till the last day to start the assignment. Sympathy is a word in the dictionary.

Member Avatar for Ancient Dragon
0
127
Member Avatar for KimJack
Member Avatar for brian.p

If you use a mutant form of AAM or AAD (I forget which right now) that uses 16 as its base rather than 10, it will cleanly split the nibbles in AL into AH and AL. IOW - 0x35 would become 0x0305

Member Avatar for Purple Avenger
0
9K
Member Avatar for SamY

[quote=mathematician;316581]Given that we are told processor belongs to the x86 family...[/quote] The OP never said that. I still can't figure out what they want.

Member Avatar for SamY
0
150
Member Avatar for Metsfan147

[quote=Metsfan147;316287]are they the only GP registers on a processor[/quote] They are it. [quote=Metsfan147;316287] Also, what's the difference between programmnig for AMD vs Intel and the different chips within these companies.[/quote] No difference, other than errata unless you start wanting to exploit things like 3DNow or MMX/SSE stuff. Stay with the …

Member Avatar for mathematician
0
220
Member Avatar for raj140916

[quote=raj140916;311342]Dear friends i am in need of assembly code for interfacing RTC with 8051 microcontroller. plz help me as soon as possible:-|[/quote] It might be more useful to have a hardware design that will work first...since there's probably dozens of different RTC chips and dozens of 8051 variants, and hundreds …

Member Avatar for Purple Avenger
-1
117
Member Avatar for simona66

a) What CPU? b) What OS? c) Is this a stock GUI like Windows or X, or a roll your own project where you're doing all the graphics yourself the hard way?

Member Avatar for mathematician
0
92
Member Avatar for KalebG

The Space Shuttle's cockpit displays/keypad processors (an IBM SP0) were programmed in assembler as was its Heads Up Display(HUD) symbology processor (Hughs A10INS processor) All of the kernel (and the vast majority of stock drivers and TSR's) for plain old DOS were written in assembler too.

Member Avatar for Purple Avenger
0
516
Member Avatar for dalvandi

Load an 8 element array of bytes with 0000001B and start rotating them until you find the combination that works. I'll write this program for $1,000. I don't do homework for free.

Member Avatar for simona66
0
126
Member Avatar for shiman999

[quote=shiman999;305474]its really a challenge to write a virus program[/quote] Most I've taken apart with a debugger were written by amateurs and full of bugs, so that's probably a pretty accurate statement.

Member Avatar for Ancient Dragon
0
79
Member Avatar for amrac

Whatever that big blog of stuff is, it isn't going to make printable floating point values. I didn't see anything in there doing BCD which almost any reasonable number display routine will have to do.

Member Avatar for amrac
0
214
Member Avatar for csckw

I would suggest IFDEF'ing out most of that crap and make one small piece work at a time. The "big bang" theory of development and debugging is a very frustrating path to take.

Member Avatar for Purple Avenger
0
147
Member Avatar for Mushy-pea
Member Avatar for Purple Avenger
0
110
Member Avatar for only_asm
Member Avatar for Ryu
0
1K
Member Avatar for mattyd

What they want you to do is take the CPU's pipeline into consideration when writing the code. On the newer x86 CPU (486 onward) you can get significant speed boosts by ordering stuff so stages of the pipeline don't stall wiating for other stage results. ex. xor cx,cx mov something, …

Member Avatar for Infarction
0
125
Member Avatar for Day Brown

This is video card/mode dependent. Why graphics mode? If a VESA text mode is available, use that.

Member Avatar for Day Brown
0
158
Member Avatar for abdullateef

The actual hardware RTC lives in the clock chip. Maybe you'd better think about how to retreive stuff out of that before worrying about diaplaying it on the screen. First things first.

Member Avatar for Purple Avenger
0
287
Member Avatar for kiks

[code] ; ; Assuming 386 32 bit assembler code ; mov ecx,val xor eax,eax ; Counts the number of '1' bits again: shl ecx,1 adc eax,0 or ecx,ecx jnz again done: ; ; EAX has the count of bits in "val" ; [/code]

Member Avatar for Purple Avenger
0
537