In a message dated 03/02/03 16:53:43 GMT Standard Time, [EMAIL PROTECTED] writes:
Just to show what I mean, a wrong evaluation of something like
pt.spcln equ 16*4+pt.spmax*2+pt.blmax*2 ; length of sprite cache
would have unhealthy effects.
Thanks to all those who commented on the type of
[EMAIL PROTECTED] wrote:
Here is a case of trade off. If the *big trouble*
Just to show what I mean, a wrong evaluation of something like
pt.spcln equ16*4+pt.spmax*2+pt.blmax*2 ; length of sprite cache
would have unhealthy effects.
in using GWASS on SMSQ/E sources is solved more easily
: Re: [ql-users] Assembly question
In a message dated 26/01/03 17:09:33 GMT Standard Time,
[EMAIL PROTECTED] writes:
[EMAIL PROTECTED] wrote:
SNIP
If anyone wants this I would appreciate a definition of how the expressions
should be evaluated. An updated GWASS would, of course, have to have
Norman Dunbar wrote:
Morning George,
I wrote an expression evaluator once, many years ago, in SuperBasic and then
converted it to C. Yeuch - all that recursion.
I suspect the obvious answer to how the EE should be written is 'so that it
conforms to arithmetic priority' as in brackets,
]
Sent: Friday, January 31, 2003 8:56 AM
Subject: RE: [ql-users] Assembly question
Morning George,
I wrote an expression evaluator once, many years ago, in SuperBasic and
then
converted it to C. Yeuch - all that recursion.
I suspect the obvious answer to how the EE should be written is 'so
John's got some hope...it's been pretty good here most of the day,
although our driver ran into some snow a bit closer to John this
morning!
--
Dilwyn Jones
Norman Dunbar wrote:
Re:
===
It's just like being in Wales !
Cheers,
Norman.
==
Go for him
To: [EMAIL PROTECTED]
Subject: Re: [ql-users] Assembly question
Norman Dunbar writes:
I wasn't being critical - honest.
You wont get much thanks for being either ;)
Per
This email is intended only for the use of the addressees named above and
may be confidential or legally privileged. If you
Message-
From: John G Hitchcock [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 12:19 PM
To: QL-users e-mail
Subject: Re: [ql-users] Assembly question
Re:
===
It's just like being in Wales !
Cheers,
Norman.
==
Go for him Dilwyn..
John
-
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 26, 2003 4:11 PM
To: [EMAIL PROTECTED]
Subject: Re: [ql-users] Assembly question
I never intended in either GWASL or GWASS to go to the trouble of evaluating
expressions except in a simple
Norman Dunbar writes:
I wasn't being critical - honest.
You wont get much thanks for being either ;)
Per
[EMAIL PROTECTED] wrote:
I never intended in either GWASL or GWASS to go to the trouble of evaluating
expressions except in a simple way. That is in both assemblers evaluation
is done from left to right ignoring implied brackets (parentheses) so
Well, I can see why you did it this way. But
[EMAIL PROTECTED] wrote:
I usually produce sprites which contain mode4, mode 8 and mode 33 versions
indise the code. To find out what they look like in practice I use my own
tspr program which displays the sprites against a 3-colour background. This
program is part of TurboPTR.
Perhaps
Marcel Kilgus makes some magical things to make me read
} Jerome Grimbert wrote:
} I have just found out that blob and mask when used in an information windows
} (How silly, it would be simpler to use a sprite instead!), seems to
} have their origin at the screen origin, not the window
Wolfgang Lenerz makes some magical things to make me read
} Oh, while you speak of the PE, I will jump in the wagon...
} I have just found out that blob and mask when used in an information windows
} (How silly, it would be simpler to use a sprite instead!), seems to
} have their origin at
Robert Newson wrote:
Looking at the 1/-1 column (closest, as I've got 2/-127), I see that N is
set and so branch should be taken. However, N is in fact clear - N,Z are
clear and C,V are set: using 2's complement and adding (I learnt MC
programming on a 6502) you can see this:
-127
P Witte wrote:
Robert Newson writes:
...
No need for the homework: I like your table and will adopt it forthwith! I
particularly liked the compressed logical expressions for the flags.
Per
Sorry to admit it, but it isn't mine (only the comments, plus the DBcc
extensions, are mine); I got
Jerome Grimbert writes:
My assembly being a little rusted, I would like to
check with the knowledgeable people the following portion of code.
...
tst.l d2
beq.s first_place second_place:
... Now, if d2 is 0, would executing that code reach
first_place or second_place ? (I
On 17 Jan 2003, at 16:53, Jerome Grimbert wrote:
Oh, while you speak of the PE, I will jump in the wagon...
I have just found out that blob and mask when used in an information windows
(How silly, it would be simpler to use a sprite instead!), seems to
have their origin at the screen
Glad to see that assembly questions still appear to attract a lot of
interest. I too sometimes have problems with conditionals. Probably
something to do with latent dyslexia (I really must get round to joining
the DNA - National Dyslexia Association ;) (If you dont get the joke
you are
Norman Dunbar wrote:
Norman (currently debugging register list routine in QLTDis about 5 hours a
night !)
Oh, this sounds like a lot of fun, too... I remember writing (and
debugging!) my 68k core. Horrible work at times. Especially when it
was already good enough to only crash QDOS after a
Hello everybody,
My assembly being a little rusted, I would like to check with the
knowledgeable
people the following portion of code.
...
tst.l d2
beq.s first_place
second_place:
...
Now, if d2 is 0, would executing that
Morning Jerome,
if D2.L is zero then you will branch to the firts_palce, if not, you'll drop
into second_place.
(Assuming you actually have a first_place in the code somewhere - otherwise,
you'll get an assembly error :o)
Cheers,
Norman.
PS. Can I recommend an excellent series of 'Learn
Jerome,
Interesting question - and code !
harpo equ $160
chico equ $140
elem_size equ $0c
clr.l a1A1 = 0
moveq.l #4,d2
lea harpo(a1),a1A1 = A1 + $160 = $160
myloop:
adda.w elem_size,a1 A1 = A1 + (5 * $0c) =
Jerome Grimbert wrote:
Also, if you do not mind, another (tricker ?) question:
harpo equ $160
chico equ $140
elem_size equ $0c
clr.l a1 ; (just to fixe a1 to 0 for the question,
; irrelevant how to if illegal)
; but once a1 has been
-
-Original Message-
From: Marcel Kilgus [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 17, 2003 11:15 AM
To: ql-users
Subject: Re: [ql-users] Assembly question
Norman Dunbar wrote:
lea chico-4*elem_size(a1),a1A1 = $140 - $19c + (4 *
$0c
- Original Message -
From: Norman Dunbar [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 17, 2003 11:30 AM
Subject: RE: [ql-users] Assembly question
Norman, could it be you have some problems with signs???
Interesting question - and code !
harpo equ $160
chico equ $140
- Original Message -
From: Marcel Kilgus [EMAIL PROTECTED]
To: ql-users [EMAIL PROTECTED]
Sent: Friday, January 17, 2003 12:04 PM
Subject: Re: [ql-users] Assembly question
Marcel seems to have less problems with sign, though typing is not his
biggest forte.
adda.w elem_size
: Friday, January 17, 2003 11:28 AM
To: [EMAIL PROTECTED]
Subject: Re: [ql-users] Assembly question
- Original Message -
From: Norman Dunbar [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 17, 2003 11:30 AM
Subject: RE: [ql-users] Assembly question
Norman, could it be you
: Norman Dunbar [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 17, 2003 12:30 PM
Subject: RE: [ql-users] Assembly question
Curses, I have been found out !
I agree that an assembler *should* evaluate expressions properly, but some
don't I'm afraid. QMAC seems to do it, but GWASL (ie
Marcel Kilgus wrote:
Disregarding the bug it's $160 + 5 * $0c + $140 - 4 * $0c
= $160 + $120 + $0c = $28c.
Speaking to myself (...), there's of course a typo. It's
$160 + $140 + $0c = $2ac
Marcel
I do, as Marcel kindly pointed out, have problems understanding how the
LEA
instruction actually works !
It becomes much easier if you have ever had a look at the opcodes. You then
know there is only an offset and nothing to indicate the sign of the data in
the register.
Joachim
Marcel Kilgus makes some magical things to make me read
} Jerome Grimbert wrote:
} Also, if you do not mind, another (tricker ?) question:
}
} harpo equ $160
} chico equ $140
} elem_size equ $0c
}
} clr.l a1 ; (just to fixe a1 to 0 for the question,
} ;
Hi Jerome,
The dbra, stops when the counter is at -1.
So your example executes the loop 5 times with d2 set to 4 then 3 then 2
then 1 then 0 and finally stops.
Cheers,
Norman
-
Norman Dunbar
Database/Unix administrator
Lynx Financial Systems Ltd.
On 17 Jan 2003, at 11:04, Jerome Grimbert wrote:
harpo equ $160
chico equ $140
elem_size equ $0c
clr.l a1 ; (just to fixe a1 to 0 for the question,
; irrelevant how to if illegal)
; but once a1 has been modified, we cannot have
On 17 Jan 2003, at 12:30, Joachim Van der Auwera wrote:
Wow, very strong. This is the kind of features that make writing (and
debugging) assembler interesting.
Yeah, right, next you're gonna suggest we switch to 'C'.
:-)))
Wolfgang
]
Subject: OT: Re: [ql-users] Assembly question
What, using a computer to solve the puzzle... You cheater :-)
Joachim
P.S. hey, at least I gave the right answer (and fastest too - must be
working really hard at the moment), even if I didn't do the actual hex
calculations. Not that I want to brag
Joachim Van der Auwera wrote:
This is probably not the code you wanted. It adds the word at memory
address $00c to a1, i.e. a # is missing.
Wow, very strong. This is the kind of features that make writing (and
debugging) assembler interesting.
Only the first few times, after that it
Marcel Kilgus makes some magical things to make me read
}
} More difficult to spots in complex and/or large codes are often things
} like wrong registers. Only 3 days ago I finally fixed a nasty bug that
} lived in the PE for about 12 years. It drew weird windows or crashed
} the machine when
38 matches
Mail list logo