From Adam Dawes · 1996-04-04 01:03 · #75521 in AMOS_ECHO
In reply to Asm Screen, no window by Lee Kindness
Hi Lee!
LK> This little bit of asm succeeds in opening a screen, but the window
LK> wont open... A friend asked me to take a look and i can't see why?
LK> Anyone else?
I might be reading it wrong (it's /ages/ since I programmed any assembly language), but:
[...]
LK> MyNewWindow:
LK> dc.w 0,14,400,100
LK> dc.b -1,-1
LK> dc.l
LK> CLOSEWINDOW,WINDOWCLOSE!WINDOWDEPTH!WINDOWDRAG!WINDOWSIZING!ACTIVATE,0,
LK> 0
LK> dc.l WindowTitle,MyScreen,0
LK> dc.w 80,24,-1,-1,CUSTOMSCREEN
[...]
LK> MyScreen:
LK> ds.l 1
Doesn't the custom-screen part of the new window structure point to a pointer to the screen? It contains the address of MyScreen, when it should contain the address of the screen itself, IYSWIM.
#include <stdio.h>/*Adam Dawes,ad32@brighton.ac.uk,Adam Dawes@2:441/93.5*/
int main(){char d[]="DEICEHIBEAHAJBJBJAJIAEFFHAHJAHJAHJHJIECHAHKGHFGHCGII"
,s[]=" /-)| \\_",*p=d,c;s[5]=10;while (*p){c=*p++^=64;if(c<5)for(;c>0;c--)
putchar(*s);else putchar(*(s+c-4));}return(0);}/*C sig by Adam Dawes '95*/
--- Spot 1.3a #1051
* Origin: She's a sad tomato. (2:441/93.5)