i have a basic program calling up a picture from an assembly program, but the bcall for showing the graphscreen isnt working until i call it with the basic function. any help?

ASM, standard header

Code:

DisplayImage:
      ld bc,12*64
      ld de,plotSScreen
      ld hl,img
      ldir
      B_CALL(_GrBufCpy)
      ret

img:
(the picture data)


Basic

Code:

:asm(prgmMCPIC
{Where the graph should pop up with picture, but doesnt)
:DispGraph
{where it actually appears...?}
:...
It could be that when you exit the asm program your program immediately returns to the homescreen, so the gbuf will be displayed a split second and then the homescreen will get drawn. Try putting a _GetKey after the _GrBufCpy and you should see that it is getting drawn.
your right, that was the problem. now, how do you change the "Dirty Screen" flag? or, flags, in general.
What do you call "dirty screen" ?
a flag, someone on the sax said it prevents drawing functions (in Basic) to work until the screen is cleared. or did i completly misunderstand that topic?
Oh yeah, it's the graphdraw flag. Set it to draw the graph, reset it to prevent it from drawing (I guess, I can be wrong). Just do :
Code:
set 0,(iy+3)
The graphDraw flag could be more accurately be called the graphDirty flag. When it is 1, the OS clears the screen and re-draws the axis and any enabled Y= (or whatever the current graph mode is) functions the next time the graphscreen is displayed. If it is 0, the OS keeps the screen as-is. It's the difference between modifying Y1 and putting a Y2 after an existing Y1.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement