[Coco] assembler directive

Dave Philipsen dave at davebiz.com
Thu Oct 5 17:08:55 EDT 2017


Ah, that sounds reasonable!  I'll bet there's something in the VTIO init 
routine that is necessary for the system.  Whatever it is is required 
when chaining a shell but not necessarily required when using the 
I$Write system call.  I embedded several debug messages in the sysgo 
program and they all show up over T2 when I boot.  And by the way, for 
any who were wondering, changing to a 'Term' descriptor did not work.  
And I didn't think it would.  I would think the only reference to Term 
would be initially when Init determines the default console.

Anyway, I'm going to start looking through the VTIO module in the init 
routine for the clock IRQ stuff.

Thanks for the tip, Curtis!


Dave

On 10/5/2017 3:30 PM, Robert Gault wrote:
> Dave Philipsen wrote:
>> Thanks, Robert.  I’m not actually using LWASM else it would have been 
>> easy to figure it out. I am assembling the source for the modules 
>> with the native OS9 assembler which, obviously, does not recognize 
>> the directive. If there were a version of LWASM for OS9 I would 
>> consider using it.
>>
>> I’m very familiar with using a cross assembler on another system to 
>> generate code and then uploading the code to the target system for 
>> testing.  Usually this is done because the target system does not 
>> have the resources to run an assembler. But in this case I have a 
>> full-blown operating system and an assembler and enough speed to do 
>> it right on the same box.  I also realize that, for the CoCo, this 
>> could be done fairly quickly with an emulator on a PC.  However, to 
>> my knowledge, neither the CoCo3FPGA nor my non-CoCo 6809 system are 
>> emulated so that’s another reason I’m converting this stuff over.
>>
>> Dave
>>
>
> Ok, just remove the dtb and replace it with an fcb similar to that 
> found in dwio.asm
> * Default time packet
> DefTime        fcb       109,12,31,23,59,59
>
> The above is used with the call F$STime so the values are year, month, 
> day, hours, minutes, seconds.
>
> I don't remember but think year starts at 1900 so 109+1900=2009 and 
> might be when dwio.asm was written. The value I get by assembling the 
> SourceForge code does seem consistent with my PC clock as the year is 
> $75=117 117+1900=2017 .
>
> Robert
>
>



More information about the Coco mailing list