Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!pasteur!cory.Berkeley.EDU!navas From: navas@cory.Berkeley.EDU (David C. Navas) Newsgroups: comp.sys.amiga Subject: Re: Difficulty in programming Message-ID: <25393@pasteur.Berkeley.EDU> Date: 2 Jun 90 18:26:25 GMT References: <2487@zipeecs.umich.edu> <1990Jun2.063414.10292@agate.berkeley.edu> Sender: news@pasteur.Berkeley.EDU Reply-To: navas@cory.Berkeley.EDU.UUCP (David C. Navas) Organization: University of California, Berkeley Lines: 38 In article <1990Jun2.063414.10292@agate.berkeley.edu> laba-1ei@e260-2f (Joseph Chung) writes: >In an IBM (no flames please!), if I want to put a character anywhere on the >screen, I just >1. load a segment register with the segment of the screen. >2. write the proper byte to the screen location (using a simple offset) (In >short, is a basic POKE command!) >How would you accomplish this in an Amiga? >1. Create my own screen, or should it be my window (damn, where did I put > my copy of NewWindow struct ...) >The above is just one very tiny example. In short, I would like you to show >me how programming a multitasking system can be *easier* than programming a >monotasking one. Now, now, Joe -- it's not all that bad. Try using -- Write(Output(), "Hello World", 11) [I hope I have that in the correct order] On an IBM, you have to: make sure if you have an appropriate graphics card, load the *correct* segment register and load the *proper* byte. Which can end up being just a wee bit more complicated than a 'simple' poke. In fact, in my experience (which is about to become painfully broader) accessing any memory in a PC is a pain in the butt. But that's a tangent... Now, of course if you wanted to *draw* a character into the *graphics* screen, lessee, you need to... [you get the picture, right?] It's clear you've never seen how the Mac applications have to talk to *their* interface. Darn good thing they had a toolbox!! >Joseph Chung >== You can always find what you're not looking for! == >laba-1ei@web.berkeley.edu David Navas navas@cory.berkeley.edu "Excuse my ignorance, but I've been run over by my train of thought." -me