[Coco] Kinda disappointed with 6809 assemblers

Luis Antoniosi (CoCoDemus) retrocanada76 at gmail.com
Thu Jan 31 22:13:03 EST 2013


kinda embarrassed now because this is a common case of RTFM!


On Thu, Jan 31, 2013 at 9:46 PM, William Astle <lost at l-w.ca> wrote:

> On 13-01-31 07:36 PM, Luis Antoniosi (CoCoDemus) wrote:
>
>> yep, I just found out :)
>>
>> game_object struct
>> x rmb 1
>> y rmb 2
>> w rmb 1
>> h rmb 1
>> dir rmb 1
>> state rmb 1
>> frame rmb 1
>> sizeof rmb 0
>> endstruct
>>
>> I need to learn all the common tricks just a matter of time.
>>
>
> You can also use sizeof{game_object} instead of defining a size element in
> the struct.
>
>
>> On Thu, Jan 31, 2013 at 9:28 PM, William Astle <lost at l-w.ca> wrote:
>>
>>  On 13-01-31 07:20 PM, Luis Antoniosi (CoCoDemus) wrote:
>>>
>>>  ops sorry my bad, i used it inside a struct. The '*' does work thxs,
>>>>
>>>>
>>> Ahh. Yeah. You can get the same effect with "rmb 0".
>>>
>>>
>>>  On Thu, Jan 31, 2013 at 8:40 PM, William Astle <lost at l-w.ca> wrote:
>>>>
>>>>                 org       0         ;Game object
>>>>
>>>>>
>>>>>  octrl    rmb      1         ;Control Byte
>>>>>> xpos    rmb      2         ;16-bit x position
>>>>>> ypos    rmb      2        ;16-bit Y position
>>>>>> olen     equ       *        ;PC counter is the length of the object
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>> --
>>> Coco mailing list
>>> Coco at maltedmedia.com
>>> http://five.pairlist.net/****mailman/listinfo/coco<http://five.pairlist.net/**mailman/listinfo/coco>
>>> <http://**five.pairlist.net/mailman/**listinfo/coco<http://five.pairlist.net/mailman/listinfo/coco>
>>> >
>>>
>>>
>>
>>
>>
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/**mailman/listinfo/coco<http://five.pairlist.net/mailman/listinfo/coco>
>



-- 
Long live the CoCo



More information about the Coco mailing list