View Single Post
Old 21 May 2021, 12:00   #40
Thomas Richter
Registered User
 
Join Date: Jan 2019
Location: Germany
Posts: 3,251
Quote:
Originally Posted by admiral View Post
Here's a "type" command. This is written by me; license is MIT like my pyamigadebug/amigaXfer project, which is very close to "do whatever you want" with it.

A couple of minor comments: The buffer size should probably align with a (multiple) of the block size of the medium. This is of course not strictly necessary, but having a block size aligned may allow the file system to "burst" directly into your buffer instead of copying through a second level buffer. I would suggest 1024 bytes.


Also, for a buffer that small you would not need to allocate memory, the stack would be sufficient.


Last but not least, "*" is not deprecated. There is a small subtle difference between CONSOLE: and "*", and without knowing anything else, I would suggest to go for "*". "*" is the current console, "CONSOLE:" is the default console. It doesn't make a difference with CON: right now, but it may make a difference in the future to allow "job control".
Thomas Richter is offline  
 
Page generated in 0.04342 seconds with 11 queries