Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  nodelist  faq  login

: is not an identifier


programming / comp.lang.asm.x86 / Re: small asm code (compo?)

SubjectAuthor
* small asm code (compo?)Kerr-Mudd,John
+* Re: small asm code (compo?)Terje Mathisen
|+* Re: small asm code (compo?)wolfgang kern
||`* Re: small asm code (compo?)Kerr-Mudd,John
|| `- Re: small asm code (compo?)Kerr-Mudd,John
|`- Re: small asm code (compo?)aen
`* Re: small asm code (compo?)Rick C. Hodgin
 `* Re: small asm code (compo?)aen
  +* Re: small asm code (compo?)Kerr-Mudd,John
  |+* Re: small asm code (compo?)Rick C. Hodgin
  ||+* Re: small asm code (compo?)aen
  |||+- Re: small asm code (compo?)Kerr-Mudd,John
  |||`* Re: small asm code (compo?)Rick C. Hodgin
  ||| `* Re: small asm code (compo?)aen
  |||  `- Re: small asm code (compo?)Kerr-Mudd,John
  ||+* Re: small asm code (compo?)Kerr-Mudd,John
  |||`* Re: small asm code (compo?)aen
  ||| `* Re: small asm code (compo?)Kerr-Mudd,John
  |||  `* Re: small asm code (compo?)aen
  |||   `- Re: small asm code (compo?)Kerr-Mudd,John
  ||`* Re: small asm code (compo?)Rick C. Hodgin
  || `- Re: small asm code (compo?)Kerr-Mudd,John
  |`* Re: small asm code (compo?)Terje Mathisen
  | `* Re: small asm code (compo?)Kerr-Mudd,John
  |  +* Re: small asm code (compo?)aen
  |  |+- Re: small asm code (compo?)Kerr-Mudd,John
  |  |`* Re: small asm code (compo?)Benjamin David Lunt
  |  | `* Re: small asm code (compo?)Kerr-Mudd,John
  |  |  `* Re: small asm code (compo?)Kerr-Mudd,John
  |  |   +* Re: small asm code (compo?)Rick C. Hodgin
  |  |   |`* Re: small asm code (compo?)Kerr-Mudd,John
  |  |   | +* Re: small asm code (compo?)Rick C. Hodgin
  |  |   | |`* Re: small asm code (compo?)Kerr-Mudd,John
  |  |   | | `- Re: small asm code (compo?)wolfgang kern
  |  |   | `* Re: small asm code (compo?)Kerr-Mudd,John
  |  |   |  `* Re: small asm code (compo?)Rick C. Hodgin
  |  |   |   `* Re: small asm code (compo?)Kerr-Mudd,John
  |  |   |    +- Re: small asm code (compo?)Kerr-Mudd,John
  |  |   |    `* Re: small asm code (compo?)wolfgang kern
  |  |   |     `- Re: small asm code (compo?)Kerr-Mudd,John
  |  |   `* Re: small asm code (compo?)Terje Mathisen
  |  |    `* Re: small asm code (compo?)Kerr-Mudd,John
  |  |     `- Re: small asm code (compo?)Kerr-Mudd,John
  |  `* Re: small asm code (compo?)Kerr-Mudd,John
  |   +* Re: small asm code (compo?)aen
  |   |`- Re: small asm code (compo?)aen
  |   `* prt nth (was: Re: small asm code (compo?)Kerr-Mudd,John
  |    `- Re: prt nth (was: Re: small asm code (compo?)Kerr-Mudd,John
  `* Re: small asm code (compo?)Rick C. Hodgin
   `* Re: small asm code (compo?)aen
    `- Re: small asm code (compo?)Kerr-Mudd,John

Pages:123
Subject: Re: small asm code (compo?)
From: Kerr-Mudd,John
Newsgroups: comp.lang.asm.x86
Organization: dis
Date: Tue, 25 Aug 2020 09:05 UTC
References: 1 2 3 4 5 6 7 8 9
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: notsay...@nospicedham.127.0.0.1 (Kerr-Mudd,John)
Newsgroups: comp.lang.asm.x86
Subject: Re: small asm code (compo?)
Date: Tue, 25 Aug 2020 09:05:56 -0000 (UTC)
Organization: dis
Lines: 37
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <XnsAC2466BCA6036admin127001@144.76.35.198>
References: <XnsAC2181A62E105admin127001@144.76.35.198> <rhu7vb$vlp$1@dont-email.me> <5f42b78d.825092203@nntp.aioe.org> <XnsAC22D39B77F8Fadmin127001@144.76.35.198> <rhumgj$sv4$1@dont-email.me> <XnsAC236A735C42Cadmin127001@144.76.35.198> <5f43b4fe.889973484@nntp.aioe.org> <XnsAC23B582B4AF6admin127001@144.76.35.198> <5f441112.913545750@nntp.aioe.org>
Injection-Info: reader02.eternal-september.org; posting-host="be53ca76e164e38d800f08507068f125";
logging-data="5057"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19pTL22bGDEnTgLQ703uFLlW7lsjifGIww="
User-Agent: Xnews/2006.08.24
Cancel-Lock: sha1:6M+MqX8UXZyXfu11Ixw9UHXa+7A=
View all headers
On Mon, 24 Aug 2020 19:28:10 GMT, aen@nospicedham.spamtrap.com wrote:

On Mon, 24 Aug 2020 16:50:35 -0000 (UTC), "Kerr-Mudd,John"
<notsaying@nospicedham.127.0.0.1> wrote:
...
I get 0 every time under XP, but thanks.
...
Uh well, my old machine with an XP was gathering dust anyway.

I copied a program that returns 2 and the geterror prog over to XP.

Then I first ran the program in DOSBox on my machine and then

debug geterror.com
u (which showed 0772:0104 as the address after the int 21h function 4D
g 0772:0104 (which showed AX=0002)

Next I ran the same thing on the XP machine in cmd

u (which showed 0d35:0104 as the address after the int 21h function 4D
g 0d35:0104 (which showed AX=0000)

But XP has cmd and not the dos command (which has no %errorlevel%, but
cmd uses

echo %errorlevel%

to show the return code and when I ran the program and then

echo %errorlevel% I got the 2, so that's what you should use.

Thanks again!


--
Bah, and indeed, Humbug.



Subject: Re: small asm code (compo?)
From: Kerr-Mudd,John
Newsgroups: comp.lang.asm.x86
Organization: dis
Date: Tue, 25 Aug 2020 09:29 UTC
References: 1 2 3 4 5 6 7 8
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: notsay...@nospicedham.127.0.0.1 (Kerr-Mudd,John)
Newsgroups: comp.lang.asm.x86
Subject: Re: small asm code (compo?)
Date: Tue, 25 Aug 2020 09:29:36 -0000 (UTC)
Organization: dis
Lines: 43
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <XnsAC246ABE9D1E7admin127001@144.76.35.198>
References: <XnsAC2181A62E105admin127001@144.76.35.198> <rhu7vb$vlp$1@dont-email.me> <5f42b78d.825092203@nntp.aioe.org> <XnsAC22D39B77F8Fadmin127001@144.76.35.198> <rhumgj$sv4$1@dont-email.me> <5f433771.857832031@nntp.aioe.org> <ri0n6v$5vi$1@dont-email.me> <5f441ab6.916013671@nntp.aioe.org>
Injection-Info: reader02.eternal-september.org; posting-host="be53ca76e164e38d800f08507068f125";
logging-data="12372"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+W3DNoHjMZvXNzPxEqnj5ZgbN7xFZ5S84="
User-Agent: Xnews/2006.08.24
Cancel-Lock: sha1:f1TUBfLdC7vowaK3+ePQ4J7bJuM=
View all headers
On Mon, 24 Aug 2020 20:13:44 GMT, aen@nospicedham.spamtrap.com wrote:

On Mon, 24 Aug 2020 11:43:27 -0400, "Rick C. Hodgin"
<rick.c.hodgin@nospicedham.gmail.com> wrote:
...
All of these were off the top of my head, with minimal testing.  I find
Open Watcom somewhat difficult to wield as I'm used to Visual Studio.
One flaw is if CAPS LOCK is on, your function keys to step into and
over
code doesn't work in the version I have.

I have Visual Studio 2003, and I tried to get it to compile a 16-bit
DOS application but it's not supported in that version.  I think I have
to go back to VS98 for that.
...
For old DOS stuff I have TASM (with Turbo Debugger), MASM (with PWB
and CV), and NASM installed in my DOSBox.

If you replace the

org 100h in a nasm file with:

section     .text
resb 100h
..start

you can do:
nasm -w-orphan-labels -g -f obj file.asm
tlink /v file.obj (you get a warning no stack here, but can ignore it)
tdstrip -s -c file.exe (that converts the exe to com and puts the
                        debug symbols in file.tds
td file.com

finally gives you Source level debbuging with a COM file.

In nasm I run (in a batch)
nasmw %1.asm -o %1.com -l %1.lst
then grdb to check it out; (setting SI DI and BP if reqd);
no debug symbols though.

--
Bah, and indeed, Humbug.



Subject: Re: small asm code (compo?)
From: Kerr-Mudd,John
Newsgroups: comp.lang.asm.x86
Organization: dis
Date: Tue, 25 Aug 2020 09:33 UTC
References: 1 2 3 4 5 6
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: notsay...@nospicedham.127.0.0.1 (Kerr-Mudd,John)
Newsgroups: comp.lang.asm.x86
Subject: Re: small asm code (compo?)
Date: Tue, 25 Aug 2020 09:33:28 -0000 (UTC)
Organization: dis
Lines: 82
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <XnsAC246B66F5B71admin127001@144.76.35.198>
References: <XnsAC2181A62E105admin127001@144.76.35.198> <rhu7vb$vlp$1@dont-email.me> <5f42b78d.825092203@nntp.aioe.org> <XnsAC22D39B77F8Fadmin127001@144.76.35.198> <rhumgj$sv4$1@dont-email.me> <ri1uhd$7a2$1@dont-email.me>
Injection-Info: reader02.eternal-september.org; posting-host="be53ca76e164e38d800f08507068f125";
logging-data="12389"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+JNL0L0cOT7fEKxKJvRjJ7YPz29bDshtE="
User-Agent: Xnews/2006.08.24
Cancel-Lock: sha1:2GfDq/UIA8IuSMjhSg70rvIaLnw=
View all headers
On Tue, 25 Aug 2020 02:54:35 GMT, "Rick C. Hodgin"
<rick.c.hodgin@nospicedham.gmail.com> wrote:

On 8/23/20 5:19 PM, Rick C. Hodgin wrote:
On 8/23/20 3:48 PM, Kerr-Mudd,John wrote:
Anyone want to try the long version? ('Monday' 'Tuesday' etc?)

[]

I had an idea this evening to remove all those extra $ symbols.
Here's a version that uses CAPS characters as a delineator.  It's
40 code bytes, 34 data bytes, 74 total.


Yup, that's how I do it in one of my 67 byte programs.


     matrix_days BYTE "SunMonTuesWednesThursFriSaturZ"
     day BYTE "day$"

     test3_ PROC PUBLIC
         mov     ah,2ah
         int     21h
         mov     bx,offset matrix_days
     top_loop:
         cmp     byte ptr [bx],'Z'
         ja      move_next
         cmp     al,0
         jz      found_it
         dec     al
     move_next:
         inc     bx
         jmp     top_loop

     found_it:
         mov     ah,2
     show_next_char:
         mov     dl,byte ptr [bx]
         int     21h
         inc     bx
         cmp     byte ptr [bx],'Z'
         ja      show_next_char

         mov     ah,9
         mov     dx,offset day
         int     21h
         ret
     test3_ ENDP

It's been a long time since I've programmed in 8086 assembly.  Usually
it's in 686 or later.  These little small asm code challenges take me
back to the man who taught me MASM 1.0.  Alan Earheart.  A quadriplegic
who damaged his spine falling off a roof.  He typed with a 30 inch
stick
in his teeth touching a keyboard mounted on a special fixture holding
also the RGB monitor where he could see it, and the keyboard where he
could access it.  We chatted over 300 baud modems and I learned how to
do assembly that way.  I was introduced to him by an employer I had in
1987.  That employer saw a spark in me, and sent me to Alan to learn
low-level coding, which I had no experience in before that save PEEKs
and POKEs on my 6502-based BASIC apps.

Alan died a few years later, but he left a legacy with me.  Were it not
for his tutilege, I may never have had such a passion for low-level asm
code, ISAs or hardware in general.  I've remembered Alan multiple times
over the years.  Always a dual set of emotions there.

It's been almost 20 years since I've written extensively in assembly.
Now it's mostly nostalgia, and a requirement for compiler development,
but most of that is a reasoned application considering various models,
and not a real coding goal as for a task, but only a particular need of
processing data types in particular ways.

I'm thankful for CLAX and other low-level software and hardware groups.


Fun still, for us few.


--
Bah, and indeed, Humbug.



Subject: Re: small asm code (compo?)
From: Kerr-Mudd,John
Newsgroups: comp.lang.asm.x86
Organization: dis
Date: Wed, 26 Aug 2020 11:32 UTC
References: 1 2 3 4 5 6 7
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: notsay...@nospicedham.127.0.0.1 (Kerr-Mudd,John)
Newsgroups: comp.lang.asm.x86
Subject: Re: small asm code (compo?)
Date: Wed, 26 Aug 2020 11:32:27 -0000 (UTC)
Organization: dis
Lines: 78
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <XnsAC257DEBA20ABadmin127001@144.76.35.198>
References: <XnsAC2181A62E105admin127001@144.76.35.198> <rhu7vb$vlp$1@dont-email.me> <5f42b78d.825092203@nntp.aioe.org> <XnsAC22D39B77F8Fadmin127001@144.76.35.198> <rhvvdq$ngu$1@gioia.aioe.org> <XnsAC236B3AF57ADadmin127001@144.76.35.198> <5f44a1ae.950565390@nntp.aioe.org>
Injection-Info: reader02.eternal-september.org; posting-host="b637a9a0a9bd12b8fb73d2ea5542e5f1";
logging-data="2173"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/BZaaGbEw3hBe5HqrYfEbjC2R23Fn3nNc="
User-Agent: Xnews/2006.08.24
Cancel-Lock: sha1:c7x4cREQT9NrAFlO4tUFS8uC6sQ=
View all headers
On Tue, 25 Aug 2020 05:34:01 GMT, aen@nospicedham.spamtrap.com wrote:

On Mon, 24 Aug 2020 09:32:28 -0000 (UTC), "Kerr-Mudd,John"
<notsaying@nospicedham.127.0.0.1> wrote:
...
One of my 'best' does a table lookup. I don't use xlat, as it changes
al.
..
Something like that?
cpu 8086
org 100h
mov ah,2ah
int 21h
;push ax
mov bl,al
mov dx,long_days
add dl,[table+bx]
mov ah,9
int 21h
mov dx,day
int 21h
;pop ax
;add ax,2201h
;int 21h
ret
table db 0, 4, 8, 13, 20, 26, 30
long_days db "Sun$Mon$Tues$Wednes$Thurs$Fri$Satur$"
day db "day$"

Ok, here's one of my earlier 'bests':

cpu 8086  ; show day str l70
org 0x100 ; Caps as delim; findcap cx=0 srch endday
;  no pp ax ; movsw for day$
;; ignores nums, spaces as well
         mov ah,0x2A         ; get system date
         int 0x21            ; al daynum, 0=sun; [cx=yr-1980,
dh=mth,dl=dom]
         inc ax              ; 1-7
         cbw                
         mov cx,ax           ; need ch=0
         mov si,daystrs
         mov di,si           ; start early!
         mov ah,0x4C         ; exitwrc
finddaycap:          
findcap:                     ; find a capstr [al untouched]
         inc di
         test byte [di],0x20
         jnz findcap
         jcxz endstr         ; 2nd srch find end str
         loop finddaycap     ; found a day; today when cx=0
         mov dx,di           ; strg prt
         jmp finddaycap      ; redo find for end str, cx=0
; cant embed str as overwrites code on Sat!        
endstr:
exitint:       ; xchg as dlm?; extra movsb's on 2nd run ok
         xchg ax,bp          ; bp=09xx  ;  mov ah,09  ; pstr
         movsw               ; si->'day$'  A5,no good as dlm
         movsw
         int 0x21            ; al=$ from prt 
         jmp exitint

daystrs  equ $
         db 'day$'
         db 'Sun'
         db 'Mon'
         db 'Tues'
         db 'Wednes'
         db 'Thurs'
         db 'Fri'
         db 'Satur'          ;  next chr must be dlm without 0x20
         db 'X'



--
Bah, and indeed, Humbug.



Subject: Re: small asm code (compo?)
From: Kerr-Mudd,John
Newsgroups: comp.lang.asm.x86
Organization: dis
Date: Fri, 4 Sep 2020 12:56 UTC
References: 1 2 3 4 5 6
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: notsay...@nospicedham.127.0.0.1 (Kerr-Mudd,John)
Newsgroups: comp.lang.asm.x86
Subject: Re: small asm code (compo?)
Date: Fri, 4 Sep 2020 12:56:20 -0000 (UTC)
Organization: dis
Lines: 87
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <XnsAC2E8DCBE661Dadmin127001@144.76.35.198>
References: <XnsAC2181A62E105admin127001@144.76.35.198> <rhu7vb$vlp$1@dont-email.me> <5f42b78d.825092203@nntp.aioe.org> <XnsAC22D39B77F8Fadmin127001@144.76.35.198> <rhvvdq$ngu$1@gioia.aioe.org> <XnsAC236B3AF57ADadmin127001@144.76.35.198>
Injection-Info: reader02.eternal-september.org; posting-host="04c7660e4aa488d662244c289c3842ba";
logging-data="2240"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Sk3r8m5wDjQlSVnqkGKiPSoG2rz28KFc="
User-Agent: Xnews/2009.05.01
Cancel-Lock: sha1:UAHEVZoZmeest+0fOnOyvcO7qqI=
View all headers
On Mon, 24 Aug 2020 09:32:28 GMT, "Kerr-Mudd,John"
<notsaying@nospicedham.127.0.0.1> wrote:

On Mon, 24 Aug 2020 08:57:30 GMT, Terje Mathisen
<terje.mathisen@nospicedham.tmsw.no> wrote:

Kerr-Mudd,John wrote:
On Sun, 23 Aug 2020 18:41:33 GMT, aen@nospicedham.spamtrap.com wrote:

On Sun, 23 Aug 2020 13:11:07 -0400, "Rick C. Hodgin"
<rick.c.hodgin@nospicedham.gmail.com> wrote:
...
         mov     ah,2ah
         int     21h
           shl     al,1
         cbw
         mov     bx,ax
         add     bx,offset days
         mov     byte ptr [bx+2],'$'
         mov     dx,bx
         mov     ah,9
         int     21h
         ret

Yup, that's about it; I forgot to put in the original spec that I
want
the return code set to 1 for Sun etc, Otherwise the 'mov bx,ax' could
have been an 'xchg'.

Anyone want to try the long version? ('Monday' 'Tuesday' etc?)

It seems obvious that you would print "day" separately from the
leading
day name chars, since that would save ~18 data bytes.

One complication is that the names are different lengths, and we
cannot
pad them all to fit "Wednes$", so maybe use XLAT to convert day number
to starting offset via a 7-byte table?


One of my 'best' does a table lookup. I don't use xlat, as it changes
al.


Just for completeness this is one that tied for 67

cpu 8086  ; show day str l67
org 0x100 ; look bkwd, use caps as dlm saved extra dlm, but same lth
mov ah,0x2A         ; get system date
int 0x21            ; al daynum, 0=sun; [cx=yr-1980, dh=mth,dl=dom]
         inc ax              ; 1-7
         cbw                 ; 2A->0
         mov cx,ax           ; keep ax for exit
         mov ah,0x4C         ; exitwrc
         mov si,daydollar    ; to append
         mov bx,si           ;; save 1 here, 1 for noEOS, lose 2 in mov
dx,bx
nextday:
         mov di,bx           ; update day end ptr
backone:
         dec bx
         test byte [bx],0x20 ; al untouched
         jnz backone
         loop nextday
         mov dx,bx           ; prt start
         movsw               ; append 'day$'
         movsw
exitint:
         xchg ax,bp          ; bp=09xx  ==  mov ah,09 ; prtstr
         int 0x21            ; al=$
         jmp exitint         ; have ax setup for exit
        
sSat     db 'Satur'
sFri     db 'Fri'
sThu     db 'Thurs'
sWed     db 'Wednes'
sTue     db 'Tues'
sMon     db 'Mon'
sSun     db 'Sun'
daydollar db 'day$'



--
Bah, and indeed, Humbug.



Subject: Re: small asm code (compo?)
From: aen...@nospicedham.spamtrap.com
Newsgroups: comp.lang.asm.x86
Organization: Aioe.org NNTP Server
Date: Sat, 5 Sep 2020 03:20 UTC
References: 1 2 3 4 5 6 7
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: aen...@nospicedham.spamtrap.com
Newsgroups: comp.lang.asm.x86
Subject: Re: small asm code (compo?)
Date: Sat, 05 Sep 2020 03:20:43 GMT
Organization: Aioe.org NNTP Server
Lines: 79
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <5f52ff74.158342843@nntp.aioe.org>
References: <XnsAC2181A62E105admin127001@144.76.35.198> <rhu7vb$vlp$1@dont-email.me> <5f42b78d.825092203@nntp.aioe.org> <XnsAC22D39B77F8Fadmin127001@144.76.35.198> <rhvvdq$ngu$1@gioia.aioe.org> <XnsAC236B3AF57ADadmin127001@144.76.35.198> <XnsAC2E8DCBE661Dadmin127001@144.76.35.198>
Injection-Info: reader02.eternal-september.org; posting-host="22b79ff0dc4692c6394fd5df7481c0d9";
logging-data="11339"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19C+PtajSyaMbH9ILK5E4gW2Tpgbv3FPzs="
Cancel-Lock: sha1:3S029tNrNHmZ34rqXDraNUUN2Qg=
View all headers
On Fri, 4 Sep 2020 12:56:20 -0000 (UTC), "Kerr-Mudd,John"
<notsaying@nospicedham.127.0.0.1> wrote:
...
Just for completeness this is one that tied for 67
nasm code snipped
...
And for those who want to do this in linux:
-----
day.s
-----
# as -o day.o day.s ; ld  --nmagic --script=com.ld -o day.com day.o
..intel_syntax noprefix
..code16gcc

         .text
         .global _start
# show day str l67
# look bkwd, use caps as dlm saved extra dlm, but same lth
_start:  mov ah,0x2A         # get system date
         int 0x21    # al daynum, 0=sun# [cx=yr-1980, dh=mth,dl=dom]
         inc ax              # 1-7
         cbw                 # 2A->0
         mov cx,ax           # keep ax for exit
         mov ah,0x4C         # exitwrc
         mov si,offset daydollar    # to append
         mov bx,si    ## save 1 here, 1 for noEOS, lose 2 in mov dx,bx
nextday:
         mov di,bx           # update day end ptr
backone:
         dec bx
         test byte ptr [bx],0x20 # al untouched
         jnz backone
         loop nextday
         mov dx,bx           # prt start
         movsw               # append 'day$'
         movsw
exitint:
         xchg ax,bp          # bp=09xx  ==  mov ah,09 # prtstr
         int 0x21            # al=$
         jmp exitint         # have ax setup for exit
        
sSat:     .ascii "Satur"
sFri:     .ascii "Fri"
sThu:     .ascii "Thurs"
sWed:     .ascii "Wednes"
sTue:     .ascii "Tues"
sMon:     .ascii "Mon"
sSun:     .ascii "Sun"
daydollar: .ascii "day$"
------
com.ld
------
OUTPUT_FORMAT(binary)
SECTIONS
{
    . = 0x0100;
    .text :
    {
        *(.text);
    }
    .data :
    {
        *(.data);
        *(.bss);
        *(.rodata);
    }
    _heap = ALIGN(4);
}

Run with:
cp day.com /home/aen/DOS ; dosbox -c day.com
           ^^^^^^^^^^^^^
           change to where you mounted c in DOSBox

Yes, GCC can produce com files:
https://nullprogram.com/blog/2014/12/09/
--
aen



Subject: Re: small asm code (compo?)
From: aen...@nospicedham.spamtrap.com
Newsgroups: comp.lang.asm.x86
Organization: Aioe.org NNTP Server
Date: Sat, 5 Sep 2020 13:14 UTC
References: 1 2 3 4 5 6 7 8
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: aen...@nospicedham.spamtrap.com
Newsgroups: comp.lang.asm.x86
Subject: Re: small asm code (compo?)
Date: Sat, 05 Sep 2020 13:14:41 GMT
Organization: Aioe.org NNTP Server
Lines: 54
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <5f538d1d.194607937@nntp.aioe.org>
References: <XnsAC2181A62E105admin127001@144.76.35.198> <rhu7vb$vlp$1@dont-email.me> <5f42b78d.825092203@nntp.aioe.org> <XnsAC22D39B77F8Fadmin127001@144.76.35.198> <rhvvdq$ngu$1@gioia.aioe.org> <XnsAC236B3AF57ADadmin127001@144.76.35.198> <XnsAC2E8DCBE661Dadmin127001@144.76.35.198> <5f52ff74.158342843@nntp.aioe.org>
Injection-Info: reader02.eternal-september.org; posting-host="22b79ff0dc4692c6394fd5df7481c0d9";
logging-data="25809"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+zO/NUTWkLP0oTCGj/O7E0zloIHI5gfPQ="
Cancel-Lock: sha1:FdwjXnjGhsmaqBDPUZjk4p023p8=
View all headers
On Sat, 05 Sep 2020 03:20:43 GMT, aen@nospicedham.spamtrap.com wrote:
...
.code16gcc
...
Should be replaced with:
..arch i8086
..code16
...

And if you prefer ATT syntax:
-----
day.s
-----
..arch i8086
..code16

         .text
         .global _start
# show day str l67
# look bkwd, use caps as dlm saved extra dlm, but same lth
_start:  movb $0x2A, %ah     # get system date
         int $0x21    # al daynum, 0=sun; [cx=yr-1980, dh=mth,dl=dom]
         incw %ax            # 1-7
         cbtw                # 2A->0
         movw %ax, %cx       # keep ax for exit
         movb $0x4C, %ah     # exitwrc
         movw $daydollar, %si        # to append
         movw %si, %bx # save 1 here, 1 for noEOS, lose 2 in mov dx,bx
nextday:
         movw %bx, %di       # update day end ptr
backone:
         decw %bx
         testb $0x20, (%bx)      # al untouched
         jnz backone
         loop nextday
         movw %bx, %dx       # prt start
         movsw               # append 'day$'
         movsw
exitint:
         xchgw %bp, %ax      # bp=09xx  ==  mov ah,09 ; prtstr
         int $0x21           # al=$
         jmp exitint         # have ax setup for exit

sSat:     .ascii "Satur"
sFri:     .ascii "Fri"
sThu:     .ascii "Thurs"
sWed:     .ascii "Wednes"
sTue:     .ascii "Tues"
sMon:     .ascii "Mon"
sSun:     .ascii "Sun"
daydollar: .ascii "day$"
--
aen



Subject: prt nth (was: Re: small asm code (compo?)
From: Kerr-Mudd,John
Newsgroups: comp.lang.asm.x86
Organization: dis
Date: Mon, 7 Sep 2020 09:52 UTC
References: 1 2 3 4 5 6 7
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: notsay...@nospicedham.127.0.0.1 (Kerr-Mudd,John)
Newsgroups: comp.lang.asm.x86
Subject: prt nth (was: Re: small asm code (compo?)
Date: Mon, 7 Sep 2020 09:52:16 -0000 (UTC)
Organization: dis
Lines: 88
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <XnsAC316E96E75EDadmin127001@144.76.35.198>
References: <XnsAC2181A62E105admin127001@144.76.35.198> <rhu7vb$vlp$1@dont-email.me> <5f42b78d.825092203@nntp.aioe.org> <XnsAC22D39B77F8Fadmin127001@144.76.35.198> <rhvvdq$ngu$1@gioia.aioe.org> <XnsAC236B3AF57ADadmin127001@144.76.35.198> <XnsAC2E8DCBE661Dadmin127001@144.76.35.198>
Injection-Info: reader02.eternal-september.org; posting-host="4f93015889ff861e006e01e75b604fef";
logging-data="28363"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+GR7gdSj76I3wsbe/hroLHvWuMLQ3vlc4="
User-Agent: Xnews/2009.05.01
Cancel-Lock: sha1:65vYZ30ia+XyTddJmAjtg5ERLR8=
View all headers
On Fri, 04 Sep 2020 12:56:20 GMT, "Kerr-Mudd,John"
<notsaying@nospicedham.127.0.0.1> wrote:
[Print "Monday"]


I'm now glacially coding  "umpteenth"

Sadly I've got bit twiddling down to a mere 2 more that the plain jmp
version!

(This is my testing code; obviously I'll only print today's date in the
full prog) - the "put nth part is the one to concentrate on.


cpu 8086 ;nth2g l 88 works!
org 0x100 ; use cwd  & cbw
;; via bl

blank equ 0x20
%define crlf 0x0D0A
start:    mov di,prtarea
         push di             ; for prt at end
          mov ax,0x4C00     
          mov bp,ax          ; setup exit 
          mov cx,031d        ; full mth test
nextday:
          inc ax
        push ax
          call put2dec       ;' dD'  ; cx=0 flag for noldz
;; put nth                   ;      ah     |        al
          mov si,thstrs      ; 30 31 32 33 | 30 31 32 33 34 35-39
          xor ax,0x3130      ;  1  0  3  2 |  0  1  2  3  4 05-09
          mov bl,al          ; save ix (bh=0)
          add ax,0x7FFC      ; 80 7F 82 81 | FC FD FE FF  0 01-05
          cwd                ; flag non-teen in dx
          cbw                ; flag 0-3 in ah
          and bl,dl          ; scrap teens
          and bl,ah          ; scrap 4-9
          shl bx,1           ; *2
          add si,bx          ; pt to 'st' etc
          movsw              ; 'th/st/nd/rd'
;; end put nth        
          mov al,blank       ; space it out
          stosb
         pop ax              ; get bin day num
         push ax
          aam 10             ; every 10th
          jne nocrlf
          mov ax,crlf        ; new line
          stosw
nocrlf:
        pop ax
          loop nextday

         pop dx              ; prt
          mov ax,0x0924
          stosb              ; put eos chr
          int 0x21           ; prtstr
          xchg ax,bp         ; exit
          int 21h

;;Data
thstrs    db  'thstndrd'

;;Subrtns
put2dec:   ; I: al=2dig num; uses ax, cl di inc by 1 or 2
          aam           ; zr if al=0, not ah, bah.
;          add cl,ah     ; cl=0 ==> no ld zr
;          jz noldz1
          or ax,0x3030
          cmp ah,0x30
          jz noldz1
          mov [di],ah
          inc di
noldz1:
          stosb
do_ret:   ret

prtarea equ $






--
Bah, and indeed, Humbug.



Subject: Re: prt nth (was: Re: small asm code (compo?)
From: Kerr-Mudd,John
Newsgroups: comp.lang.asm.x86
Organization: dis
Date: Mon, 7 Sep 2020 14:07 UTC
References: 1 2 3 4 5 6 7 8
Path: i2pn2.org!i2pn.org!news.swapon.de!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: notsay...@nospicedham.127.0.0.1 (Kerr-Mudd,John)
Newsgroups: comp.lang.asm.x86
Subject: Re: prt nth (was: Re: small asm code (compo?)
Date: Mon, 7 Sep 2020 14:07:51 -0000 (UTC)
Organization: dis
Lines: 95
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <XnsAC3199EB39ECDadmin127001@144.76.35.198>
References: <XnsAC2181A62E105admin127001@144.76.35.198> <rhu7vb$vlp$1@dont-email.me> <5f42b78d.825092203@nntp.aioe.org> <XnsAC22D39B77F8Fadmin127001@144.76.35.198> <rhvvdq$ngu$1@gioia.aioe.org> <XnsAC236B3AF57ADadmin127001@144.76.35.198> <XnsAC2E8DCBE661Dadmin127001@144.76.35.198> <XnsAC316E96E75EDadmin127001@144.76.35.198>
Injection-Info: reader02.eternal-september.org; posting-host="4f93015889ff861e006e01e75b604fef";
logging-data="15138"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/5+SzW4jB1jCu0myMXvTqk5BVzRbUHN54="
User-Agent: Xnews/2009.05.01
Cancel-Lock: sha1:0cq0b8Wy8x/MZwZO58g3EfdyF94=
View all headers
On Mon, 07 Sep 2020 09:52:16 GMT, "Kerr-Mudd,John"
<notsaying@nospicedham.127.0.0.1> wrote:

On Fri, 04 Sep 2020 12:56:20 GMT, "Kerr-Mudd,John"
<notsaying@nospicedham.127.0.0.1> wrote:
[Print "Monday"]


I'm now glacially coding  "umpteenth"

Sadly I've got bit twiddling down to a mere 2 more that the plain jmp
version!

(This is my testing code; obviously I'll only print today's date in the
full prog) - the "put nth part is the one to concentrate on.

Of course as soon as you post something you spot an improvement!
(still 1 too many!)

 cpu 8086 ;nth2h l 87 works!
org 0x100 ; use cwd  & cbw
;; via bl

blank equ 0x20
%define crlf 0x0D0A
start:    mov di,prtarea
         push di             ; for prt at end
          mov ax,0x4C00     
          mov bp,ax          ; setup exit 
          mov cx,031d        ; full mth test
nextday:
          inc ax
        push ax
          call put2dec       ;' dD'  ; cx=0 flag for noldz
;; put nth                   ;      ah     |        al

 ;           mov si,thstrs      ; 30 31 32 33 | 30 31 32 33 34 35-39

          xor ax,0x3130      ;  1  0  3  2 |  0  1  2  3  4 05-09
          mov bl,al          ; save ix (bh=0)
          add ax,0x7FFC      ; 80 7F 82 81 | FC FD FE FF  0 01-05
          cwd                ; flag non-teen in dx
          cbw                ; flag 0-3 in ah
          and bl,dl          ; scrap teens
          and bl,ah          ; scrap 4-9
          shl bx,1           ; *2
;           add si,bx          ; pt to 'st' etc

            lea si,[bx+thstrs]

          movsw              ; 'th/st/nd/rd'
;; end put nth        
          mov al,blank       ; space it out
          stosb
         pop ax              ; get bin day num
         push ax
          aam 10             ; every 10th
          jne nocrlf
          mov ax,crlf        ; new line
          stosw
nocrlf:
        pop ax
          loop nextday

         pop dx              ; prt
          mov ax,0x0924
          stosb              ; put eos chr
          int 0x21           ; prtstr
          xchg ax,bp         ; exit
          int 21h

;;Data
thstrs    db  'thstndrd'

;;Subrtns
put2dec:   ; I: al=2dig num; uses ax, cl di inc by 1 or 2
          aam           ; zr if al=0, not ah, bah.
;          add cl,ah     ; cl=0 ==> no ld zr
;          jz noldz1
          or ax,0x3030
          cmp ah,0x30
          jz noldz1
          mov [di],ah
          inc di
noldz1:
          stosb
do_ret:   ret

prtarea equ $



--
Bah, and indeed, Humbug.



Subject: Re: small asm code (compo?)
From: Benjamin David Lunt
Newsgroups: comp.lang.asm.x86
Organization: Aioe.org NNTP Server
Date: Thu, 10 Sep 2020 03:38 UTC
References: 1 2 3 4 5 6 7
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: zfy...@nospicedham.fysnet.net (Benjamin David Lunt)
Newsgroups: comp.lang.asm.x86
Subject: Re: small asm code (compo?)
Date: Wed, 9 Sep 2020 20:38:11 -0700
Organization: Aioe.org NNTP Server
Lines: 46
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <rjc738$1hja$1@gioia.aioe.org>
References: <XnsAC2181A62E105admin127001@144.76.35.198> <rhu7vb$vlp$1@dont-email.me> <5f42b78d.825092203@nntp.aioe.org> <XnsAC22D39B77F8Fadmin127001@144.76.35.198> <rhvvdq$ngu$1@gioia.aioe.org> <XnsAC236B3AF57ADadmin127001@144.76.35.198> <5f44a1ae.950565390@nntp.aioe.org>
Injection-Info: reader02.eternal-september.org; posting-host="3e28b0d9008f5b5dfa7c9ffe05ae8b81";
logging-data="2626"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+TVQ6PaipEDN1PBo/rbTdArYGcoM+8xp8="
Cancel-Lock: sha1:ms8X/LNYhLzIwouGFMyyNMjLqCY=
View all headers

Hi guys.

This is exactly what I came up with, minus a byte:

<aen@nospicedham.spamtrap.com> wrote in message
cpu 8086
org 100h
mov ah,2ah
int 21h
;push ax
mov bl,al
mov dx,long_days
add dl,[table+bx]
mov ah,9
int 21h
mov dx,day

; you can save a byte here since you only have
;  to update DL.  DH is unchanged.

int 21h
;pop ax
;add ax,2201h
;int 21h
ret
table db 0, 4, 8, 13, 20, 26, 30
long_days db "Sun$Mon$Tues$Wednes$Thurs$Fri$Satur$"
day db "day$"

These were the days.  Reminds me of the Hugi Compo's
  ( http://www.hugi.scene.org/compo/hcompo.htm )

Good evening to all
Ben

--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Forever Young Software
http://www.fysnet.net/index.htm
http://www.fysnet.net/osdesign_book_series.htm
To reply by email, please remove the zzzzzz's

Batteries not included, some Assembly required.




Subject: Re: small asm code (compo?)
From: Kerr-Mudd,John
Newsgroups: comp.lang.asm.x86
Organization: dis
Date: Thu, 10 Sep 2020 09:13 UTC
References: 1 2 3 4 5 6 7 8
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: notsay...@nospicedham.127.0.0.1 (Kerr-Mudd,John)
Newsgroups: comp.lang.asm.x86
Subject: Re: small asm code (compo?)
Date: Thu, 10 Sep 2020 09:13:34 -0000 (UTC)
Organization: dis
Lines: 21
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <XnsAC3468068DA93admin127001@144.76.35.198>
References: <XnsAC2181A62E105admin127001@144.76.35.198> <rhu7vb$vlp$1@dont-email.me> <5f42b78d.825092203@nntp.aioe.org> <XnsAC22D39B77F8Fadmin127001@144.76.35.198> <rhvvdq$ngu$1@gioia.aioe.org> <XnsAC236B3AF57ADadmin127001@144.76.35.198> <5f44a1ae.950565390@nntp.aioe.org> <rjc738$1hja$1@gioia.aioe.org>
Injection-Info: reader02.eternal-september.org; posting-host="3e28b0d9008f5b5dfa7c9ffe05ae8b81";
logging-data="28345"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18um9qF6/cKwhuE+UkO/vWx9elWClwC3BE="
User-Agent: Xnews/2009.05.01
Cancel-Lock: sha1:bjNXkkdF9puksxXyJadhjuoAQB0=
View all headers
On Thu, 10 Sep 2020 03:38:11 GMT, "Benjamin David Lunt"
<zfysz@nospicedham.fysnet.net> wrote:


Hi guys.

This is exactly what I came up with, minus a byte:

<aen@nospicedham.spamtrap.com> wrote in message
[]

These were the days.  Reminds me of the Hugi Compo's
  ( http://www.hugi.scene.org/compo/hcompo.htm )

Indeed; that's what I've been admiring.



--
Bah, and indeed, Humbug.



Subject: Re: small asm code (compo?)
From: Kerr-Mudd,John
Newsgroups: comp.lang.asm.x86
Organization: dis
Date: Tue, 15 Sep 2020 19:52 UTC
References: 1 2 3 4 5 6 7 8 9
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: notsay...@nospicedham.127.0.0.1 (Kerr-Mudd,John)
Newsgroups: comp.lang.asm.x86
Subject: Re: small asm code (compo?)
Date: Tue, 15 Sep 2020 19:52:09 -0000 (UTC)
Organization: dis
Lines: 31
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <XnsAC39D44B35C7Eadmin127001@144.76.35.198>
References: <XnsAC2181A62E105admin127001@144.76.35.198> <rhu7vb$vlp$1@dont-email.me> <5f42b78d.825092203@nntp.aioe.org> <XnsAC22D39B77F8Fadmin127001@144.76.35.198> <rhvvdq$ngu$1@gioia.aioe.org> <XnsAC236B3AF57ADadmin127001@144.76.35.198> <5f44a1ae.950565390@nntp.aioe.org> <rjc738$1hja$1@gioia.aioe.org> <XnsAC3468068DA93admin127001@144.76.35.198>
Injection-Info: reader02.eternal-september.org; posting-host="06cd29ac3c2e6e689506469e787f9e42";
logging-data="12006"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+PECY92TOSfU4xv+nKHJxlwEowJWn00Nc="
User-Agent: Xnews/2009.05.01
Cancel-Lock: sha1:NBrHNtoxsF5gBD0FZOzANIGrvhk=
View all headers
On Thu, 10 Sep 2020 09:13:34 GMT, "Kerr-Mudd,John"
<notsaying@nospicedham.127.0.0.1> wrote:

On Thu, 10 Sep 2020 03:38:11 GMT, "Benjamin David Lunt"
<zfysz@nospicedham.fysnet.net> wrote:


Hi guys.

This is exactly what I came up with, minus a byte:

<aen@nospicedham.spamtrap.com> wrote in message
[]

These were the days.  Reminds me of the Hugi Compo's
  ( http://www.hugi.scene.org/compo/hcompo.htm )

Indeed; that's what I've been admiring.



Finally!

20:51:03 Tuesday 15th September 2020

in 256 bytes.


--
Bah, and indeed, Humbug.



Subject: Re: small asm code (compo?)
From: Rick C. Hodgin
Newsgroups: comp.lang.asm.x86
Organization: Liberty Software Foundation
Date: Tue, 15 Sep 2020 20:15 UTC
References: 1 2 3 4 5 6 7 8 9 10
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: rick.c.h...@nospicedham.gmail.com (Rick C. Hodgin)
Newsgroups: comp.lang.asm.x86
Subject: Re: small asm code (compo?)
Date: Tue, 15 Sep 2020 16:15:10 -0400
Organization: Liberty Software Foundation
Lines: 12
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <rjr7ce$gkc$1@dont-email.me>
References: <XnsAC2181A62E105admin127001@144.76.35.198>
<rhu7vb$vlp$1@dont-email.me> <5f42b78d.825092203@nntp.aioe.org>
<XnsAC22D39B77F8Fadmin127001@144.76.35.198> <rhvvdq$ngu$1@gioia.aioe.org>
<XnsAC236B3AF57ADadmin127001@144.76.35.198>
<5f44a1ae.950565390@nntp.aioe.org> <rjc738$1hja$1@gioia.aioe.org>
<XnsAC3468068DA93admin127001@144.76.35.198>
<XnsAC39D44B35C7Eadmin127001@144.76.35.198>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="06cd29ac3c2e6e689506469e787f9e42";
logging-data="18652"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19VE2IczCTIJFyohD4N3H4DDXrtylciCqw="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
Thunderbird/68.10.0
Cancel-Lock: sha1:qAcF+zXcfzIhby1+FweHhxU7NH0=
View all headers
On 9/15/20 3:52 PM, Kerr-Mudd,John wrote:
Finally!

20:51:03 Tuesday 15th September 2020

in 256 bytes.

Which one is that you have 256 bytes?  I may throw my hat in the ring.

--
Rick C. Hodgin



Subject: Re: small asm code (compo?)
From: Kerr-Mudd,John
Newsgroups: comp.lang.asm.x86
Organization: dis
Date: Wed, 16 Sep 2020 08:58 UTC
References: 1 2 3 4 5 6 7 8 9 10 11
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: notsay...@nospicedham.127.0.0.1 (Kerr-Mudd,John)
Newsgroups: comp.lang.asm.x86
Subject: Re: small asm code (compo?)
Date: Wed, 16 Sep 2020 08:58:29 -0000 (UTC)
Organization: dis
Lines: 26
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <XnsAC3A657844E3admin127001@144.76.35.198>
References: <XnsAC2181A62E105admin127001@144.76.35.198> <rhu7vb$vlp$1@dont-email.me> <5f42b78d.825092203@nntp.aioe.org> <XnsAC22D39B77F8Fadmin127001@144.76.35.198> <rhvvdq$ngu$1@gioia.aioe.org> <XnsAC236B3AF57ADadmin127001@144.76.35.198> <5f44a1ae.950565390@nntp.aioe.org> <rjc738$1hja$1@gioia.aioe.org> <XnsAC3468068DA93admin127001@144.76.35.198> <XnsAC39D44B35C7Eadmin127001@144.76.35.198> <rjr7ce$gkc$1@dont-email.me>
Injection-Info: reader02.eternal-september.org; posting-host="e78831de870e90a9082da42127b41d4e";
logging-data="19956"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/LFZ4JxTICdPcZYSE47pnxKDnmJbtaxkg="
User-Agent: Xnews/2009.05.01
Cancel-Lock: sha1:ON5n4zui0R/SCclFxQgbbcJr+Zg=
View all headers
On Tue, 15 Sep 2020 20:15:10 GMT, "Rick C. Hodgin"
<rick.c.hodgin@nospicedham.gmail.com> wrote:

On 9/15/20 3:52 PM, Kerr-Mudd,John wrote:
Finally!

20:51:03 Tuesday 15th September 2020

in 256 bytes.

Which one is that you have 256 bytes?  I may throw my hat in the ring.

A DOS program to show time & date:
suppress leading zero for hour and day, colon separator for time, show
n'th' (or 'st' etc) of month name for day and month, AND setting
errorlevel to daynum+1 (Sun=1) on exit.
Though I don't add crlf to end the string.

9:58:06 Wednesday 16th September 2020

Does throwing your hat in mean you want to try, or are you giving up?
ah, that'd be the towel. Go on give it a go.

--
Bah, and indeed, Humbug.



Subject: Re: small asm code (compo?)
From: Terje Mathisen
Newsgroups: comp.lang.asm.x86
Organization: Aioe.org NNTP Server
Date: Wed, 16 Sep 2020 10:09 UTC
References: 1 2 3 4 5 6 7 8 9 10
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: terje.ma...@nospicedham.tmsw.no (Terje Mathisen)
Newsgroups: comp.lang.asm.x86
Subject: Re: small asm code (compo?)
Date: Wed, 16 Sep 2020 12:09:35 +0200
Organization: Aioe.org NNTP Server
Lines: 42
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <rjso8v$1e4$1@gioia.aioe.org>
References: <XnsAC2181A62E105admin127001@144.76.35.198>
<rhu7vb$vlp$1@dont-email.me> <5f42b78d.825092203@nntp.aioe.org>
<XnsAC22D39B77F8Fadmin127001@144.76.35.198> <rhvvdq$ngu$1@gioia.aioe.org>
<XnsAC236B3AF57ADadmin127001@144.76.35.198>
<5f44a1ae.950565390@nntp.aioe.org> <rjc738$1hja$1@gioia.aioe.org>
<XnsAC3468068DA93admin127001@144.76.35.198>
<XnsAC39D44B35C7Eadmin127001@144.76.35.198>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="e78831de870e90a9082da42127b41d4e";
logging-data="13110"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/L/2Zs+D4S1Fu9MhBr/m8hvGrX1gOUmVU="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101
Firefox/60.0 SeaMonkey/2.53.3
Cancel-Lock: sha1:+AAm7Yir/S5lON2k7bHYn4IP92A=
View all headers
Kerr-Mudd,John wrote:
On Thu, 10 Sep 2020 09:13:34 GMT, "Kerr-Mudd,John"
<notsaying@nospicedham.127.0.0.1> wrote:

On Thu, 10 Sep 2020 03:38:11 GMT, "Benjamin David Lunt"
<zfysz@nospicedham.fysnet.net> wrote:


Hi guys.

This is exactly what I came up with, minus a byte:

<aen@nospicedham.spamtrap.com> wrote in message
[]

These were the days.  Reminds me of the Hugi Compo's
   ( http://www.hugi.scene.org/compo/hcompo.htm )

Indeed; that's what I've been admiring.



Finally!

20:51:03 Tuesday 15th September 2020

I assume you will print 1st, 2nd, 3rd followed by 4th...20th, then 21st, 22nd, 23rd followed by 24th to 30th and finally 31st?

Basically exceptions for numbers ending in 1,2,3 except when the previous letter is '1'?

in 256 bytes.

Seems trivial except for the day names and numbers. :-)

Terje

--
- <Terje.Mathisen at tmsw.no>
"almost all programming can be viewed as an exercise in caching"



Subject: Re: small asm code (compo?)
From: Kerr-Mudd,John
Newsgroups: comp.lang.asm.x86
Organization: dis
Date: Wed, 16 Sep 2020 13:13 UTC
References: 1 2 3 4 5 6 7 8 9 10 11
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: notsay...@nospicedham.127.0.0.1 (Kerr-Mudd,John)
Newsgroups: comp.lang.asm.x86
Subject: Re: small asm code (compo?)
Date: Wed, 16 Sep 2020 13:13:05 -0000 (UTC)
Organization: dis
Lines: 42
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <XnsAC3A90A273680admin127001@144.76.35.198>
References: <XnsAC2181A62E105admin127001@144.76.35.198> <rhu7vb$vlp$1@dont-email.me> <5f42b78d.825092203@nntp.aioe.org> <XnsAC22D39B77F8Fadmin127001@144.76.35.198> <rhvvdq$ngu$1@gioia.aioe.org> <XnsAC236B3AF57ADadmin127001@144.76.35.198> <5f44a1ae.950565390@nntp.aioe.org> <rjc738$1hja$1@gioia.aioe.org> <XnsAC3468068DA93admin127001@144.76.35.198> <XnsAC39D44B35C7Eadmin127001@144.76.35.198> <rjso8v$1e4$1@gioia.aioe.org>
Injection-Info: reader02.eternal-september.org; posting-host="e78831de870e90a9082da42127b41d4e";
logging-data="13607"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18qZT1qQCJmGGImEboYudbkAWW+S+hSwSY="
User-Agent: Xnews/2009.05.01
Cancel-Lock: sha1:ufT78deoipNfYssLlO29gPmvCJ0=
View all headers
On Wed, 16 Sep 2020 10:09:35 GMT, Terje Mathisen
<terje.mathisen@nospicedham.tmsw.no> wrote:

Kerr-Mudd,John wrote:
On Thu, 10 Sep 2020 09:13:34 GMT, "Kerr-Mudd,John"
<notsaying@nospicedham.127.0.0.1> wrote:

["spec" in other branch of this thread]

Finally!

20:51:03 Tuesday 15th September 2020

I assume you will print 1st, 2nd, 3rd followed by 4th...20th, then
21st,
22nd, 23rd followed by 24th to 30th and finally 31st?

Basically exceptions for numbers ending in 1,2,3 except when the
previous letter is '1'?

Well, of course. It has to be done properly.
Perhaps I should have waited a bit before going to press. (-:

[balances brackets]


in 256 bytes.

Seems trivial except for the day names and numbers. :-)

Terje


I guess a really clever, small, text decoder might make it trivial to
come in under the size limit!

I'll publish a hexdump after a bit to allow Wolfgang a go at trimming it
down further (assuming he's still up for it).

--
Bah, and indeed, Humbug.



Subject: Re: small asm code (compo?)
From: Rick C. Hodgin
Newsgroups: comp.lang.asm.x86
Organization: Liberty Software Foundation
Date: Wed, 16 Sep 2020 20:38 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: rick.c.h...@nospicedham.gmail.com (Rick C. Hodgin)
Newsgroups: comp.lang.asm.x86
Subject: Re: small asm code (compo?)
Date: Wed, 16 Sep 2020 16:38:03 -0400
Organization: Liberty Software Foundation
Lines: 19
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <rjtt3b$ke5$1@dont-email.me>
References: <XnsAC2181A62E105admin127001@144.76.35.198>
<rhu7vb$vlp$1@dont-email.me> <5f42b78d.825092203@nntp.aioe.org>
<XnsAC22D39B77F8Fadmin127001@144.76.35.198> <rhvvdq$ngu$1@gioia.aioe.org>
<XnsAC236B3AF57ADadmin127001@144.76.35.198>
<5f44a1ae.950565390@nntp.aioe.org> <rjc738$1hja$1@gioia.aioe.org>
<XnsAC3468068DA93admin127001@144.76.35.198>
<XnsAC39D44B35C7Eadmin127001@144.76.35.198> <rjr7ce$gkc$1@dont-email.me>
<XnsAC3A657844E3admin127001@144.76.35.198>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="e78831de870e90a9082da42127b41d4e";
logging-data="26734"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+w1OaHd5aMOWXDDQNcIH/GswWhwfILrrs="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
Thunderbird/68.10.0
Cancel-Lock: sha1:A5rZ5Z+7JLY6e2+FBhoYTn1VaPA=
View all headers
On 9/16/20 4:58 AM, Kerr-Mudd,John wrote:
A DOS program to show time & date:
suppress leading zero for hour and day, colon separator for time, show
n'th' (or 'st' etc) of month name for day and month, AND setting
errorlevel to daynum+1 (Sun=1) on exit.
Though I don't add crlf to end the string.

9:58:06 Wednesday 16th September 2020

Does throwing your hat in mean you want to try, or are you giving up?
ah, that'd be the towel. Go on give it a go.

Yes.  I'll give it a go.  It won't be for a few days, so if you need go ahead and move forward with whatever plans you have.  I'll submit a legitimate original attempt despite any other source code or ideas posted.

--
Rick C. Hodgin



Subject: Re: small asm code (compo?)
From: Kerr-Mudd,John
Newsgroups: comp.lang.asm.x86
Organization: dis
Date: Mon, 21 Sep 2020 19:08 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: notsay...@nospicedham.127.0.0.1 (Kerr-Mudd,John)
Newsgroups: comp.lang.asm.x86
Subject: Re: small asm code (compo?)
Date: Mon, 21 Sep 2020 19:08:21 -0000 (UTC)
Organization: dis
Lines: 27
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <XnsAC3FCCE2FD8D9admin127001@144.76.35.198>
References: <XnsAC2181A62E105admin127001@144.76.35.198> <rhu7vb$vlp$1@dont-email.me> <5f42b78d.825092203@nntp.aioe.org> <XnsAC22D39B77F8Fadmin127001@144.76.35.198> <rhvvdq$ngu$1@gioia.aioe.org> <XnsAC236B3AF57ADadmin127001@144.76.35.198> <5f44a1ae.950565390@nntp.aioe.org> <rjc738$1hja$1@gioia.aioe.org> <XnsAC3468068DA93admin127001@144.76.35.198> <XnsAC39D44B35C7Eadmin127001@144.76.35.198> <rjr7ce$gkc$1@dont-email.me> <XnsAC3A657844E3admin127001@144.76.35.198> <rjtt3b$ke5$1@dont-email.me>
Injection-Info: reader02.eternal-september.org; posting-host="62fc6cd71064cf60e842eb36e7cce3a3";
logging-data="4110"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18byGeqDMiQ458OXcPdeED+Bgf7rZQHse8="
User-Agent: Xnews/2009.05.01
Cancel-Lock: sha1:1EPSXAhf/xHmVwxWgs+EYzw/47U=
View all headers
On Wed, 16 Sep 2020 20:38:03 GMT, "Rick C. Hodgin"
<rick.c.hodgin@nospicedham.gmail.com> wrote:

On 9/16/20 4:58 AM, Kerr-Mudd,John wrote:
A DOS program to show time & date:
suppress leading zero for hour and day, colon separator for time,
show n'th' (or 'st' etc) of month name for day and month, AND setting
errorlevel to daynum+1 (Sun=1) on exit.
Though I don't add crlf to end the string.

9:58:06 Wednesday 16th September 2020

Does throwing your hat in mean you want to try, or are you giving up?
ah, that'd be the towel. Go on give it a go.

Yes.  I'll give it a go.  It won't be for a few days, so if you need
go ahead and move forward with whatever plans you have.  I'll submit a
legitimate original attempt despite any other source code or ideas
posted.


Wolfgang? are you still here?


--
Bah, and indeed, Humbug.



Subject: Re: small asm code (compo?)
From: wolfgang kern
Newsgroups: comp.lang.asm.x86
Organization: KESYS-development
Date: Tue, 22 Sep 2020 16:04 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: nowh...@nospicedham.never.at (wolfgang kern)
Newsgroups: comp.lang.asm.x86
Subject: Re: small asm code (compo?)
Date: Tue, 22 Sep 2020 18:04:22 +0200
Organization: KESYS-development
Lines: 8
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <rkd7d1$aio$2@gioia.aioe.org>
References: <XnsAC2181A62E105admin127001@144.76.35.198>
<rhu7vb$vlp$1@dont-email.me> <5f42b78d.825092203@nntp.aioe.org>
<XnsAC22D39B77F8Fadmin127001@144.76.35.198> <rhvvdq$ngu$1@gioia.aioe.org>
<XnsAC236B3AF57ADadmin127001@144.76.35.198>
<5f44a1ae.950565390@nntp.aioe.org> <rjc738$1hja$1@gioia.aioe.org>
<XnsAC3468068DA93admin127001@144.76.35.198>
<XnsAC39D44B35C7Eadmin127001@144.76.35.198> <rjr7ce$gkc$1@dont-email.me>
<XnsAC3A657844E3admin127001@144.76.35.198> <rjtt3b$ke5$1@dont-email.me>
<XnsAC3FCCE2FD8D9admin127001@144.76.35.198>
Reply-To: nowhere@never.at
Mime-Version: 1.0
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="729d5021d419bcbce5ef644c33f72d1a";
logging-data="31252"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/zfECJHEMGfxqXizragOjChrUUl3dB7uc="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.2.2
Cancel-Lock: sha1:XH56HksZ24qtZ+nsg6EJAHjerUE=
View all headers
On 21.09.2020 21:08, Kerr-Mudd,John wrote:
....
Wolfgang? are you still here?

still alive, but a bit exhausted from too much gaming :)
__
wolfgang



Subject: Re: small asm code (compo?)
From: Kerr-Mudd,John
Newsgroups: comp.lang.asm.x86
Organization: dis
Date: Wed, 23 Sep 2020 09:48 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: notsay...@nospicedham.127.0.0.1 (Kerr-Mudd,John)
Newsgroups: comp.lang.asm.x86
Subject: Re: small asm code (compo?)
Date: Wed, 23 Sep 2020 09:48:21 -0000 (UTC)
Organization: dis
Lines: 35
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <XnsAC416DECB28BCadmin127001@144.76.35.198>
References: <XnsAC2181A62E105admin127001@144.76.35.198> <rhu7vb$vlp$1@dont-email.me> <5f42b78d.825092203@nntp.aioe.org> <XnsAC22D39B77F8Fadmin127001@144.76.35.198> <rhvvdq$ngu$1@gioia.aioe.org> <XnsAC236B3AF57ADadmin127001@144.76.35.198> <5f44a1ae.950565390@nntp.aioe.org> <rjc738$1hja$1@gioia.aioe.org> <XnsAC3468068DA93admin127001@144.76.35.198> <XnsAC39D44B35C7Eadmin127001@144.76.35.198> <rjr7ce$gkc$1@dont-email.me> <XnsAC3A657844E3admin127001@144.76.35.198>
Injection-Info: reader02.eternal-september.org; posting-host="e802f1048fb716fc534f56aed3a0edc2";
logging-data="26039"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19NAO8g6Gqi54VDKhlWE4Pa1G4WRDVzNZU="
User-Agent: Xnews/2009.05.01
Cancel-Lock: sha1:Yf45GrF6ekG8N8Q09fdBxmcxYFY=
View all headers
On Wed, 16 Sep 2020 08:58:29 GMT, "Kerr-Mudd,John"
<notsaying@nospicedham.127.0.0.1> wrote:

On Tue, 15 Sep 2020 20:15:10 GMT, "Rick C. Hodgin"
<rick.c.hodgin@nospicedham.gmail.com> wrote:

On 9/15/20 3:52 PM, Kerr-Mudd,John wrote:
Finally!

20:51:03 Tuesday 15th September 2020

in 256 bytes.

Which one is that you have 256 bytes?  I may throw my hat in the ring.

A DOS program to show time & date:
suppress leading zero for hour and day, colon separator for time, show
n'th' (or 'st' etc) of month name for day and month, AND setting
errorlevel to daynum+1 (Sun=1) on exit.
Though I don't add crlf to end the string.

9:58:06 Wednesday 16th September 2020

Does throwing your hat in mean you want to try, or are you giving up?
ah, that'd be the towel. Go on give it a go.


10:47:35 Wednesday 23rd September 2020


How about a 1st Oct deadline?

--
Bah, and indeed, Humbug.



Subject: Re: small asm code (compo?)
From: Rick C. Hodgin
Newsgroups: comp.lang.asm.x86
Organization: Liberty Software Foundation
Date: Wed, 23 Sep 2020 14:29 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: rick.c.h...@nospicedham.gmail.com (Rick C. Hodgin)
Newsgroups: comp.lang.asm.x86
Subject: Re: small asm code (compo?)
Date: Wed, 23 Sep 2020 10:29:58 -0400
Organization: Liberty Software Foundation
Lines: 25
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <rkfm58$56m$1@dont-email.me>
References: <XnsAC2181A62E105admin127001@144.76.35.198>
<rhu7vb$vlp$1@dont-email.me> <5f42b78d.825092203@nntp.aioe.org>
<XnsAC22D39B77F8Fadmin127001@144.76.35.198> <rhvvdq$ngu$1@gioia.aioe.org>
<XnsAC236B3AF57ADadmin127001@144.76.35.198>
<5f44a1ae.950565390@nntp.aioe.org> <rjc738$1hja$1@gioia.aioe.org>
<XnsAC3468068DA93admin127001@144.76.35.198>
<XnsAC39D44B35C7Eadmin127001@144.76.35.198> <rjr7ce$gkc$1@dont-email.me>
<XnsAC3A657844E3admin127001@144.76.35.198>
<XnsAC416DECB28BCadmin127001@144.76.35.198>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="e802f1048fb716fc534f56aed3a0edc2";
logging-data="10279"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/8Y+pNRm6x7+9ktOi7S3+0KaRwYW5ZqbI="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
Thunderbird/68.10.0
Cancel-Lock: sha1:FrRCputaAiHcueSP4FqWOWNAv/k=
View all headers
On 9/23/20 5:48 AM, Kerr-Mudd,John wrote:
10:47:35 Wednesday 23rd September 2020

How about a 1st Oct deadline?

Works for me.  I tried this past weekend but couldn't get a decent design.  Have too many other things on my mind I think.

I find these compos kind of exciting, even relaxing.  I'll put in some time, but if it's not in by Oct 1, no worries.  Go forward.

I had an idea also that we could use a front-end loader to take a fixed data payload and orient it in memory however we need to, allowing only the data payload to be the actual size, using a common loader with common abilities.

It might be an interesting way to setup things like POP CS to allow for some interesting space savings by designing the code in a particular way.

We may be able to do some of that with an EXE loader and ORG statements, but it would give us more options if we could use a common loader.

--
Rick C. Hodgin



Subject: Re: small asm code (compo?)
From: Kerr-Mudd,John
Newsgroups: comp.lang.asm.x86
Organization: dis
Date: Sat, 26 Sep 2020 20:28 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: notsay...@nospicedham.127.0.0.1 (Kerr-Mudd,John)
Newsgroups: comp.lang.asm.x86
Subject: Re: small asm code (compo?)
Date: Sat, 26 Sep 2020 20:28:54 -0000 (UTC)
Organization: dis
Lines: 53
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <XnsAC44DA862B4A0admin127001@144.76.35.198>
References: <XnsAC2181A62E105admin127001@144.76.35.198> <rhu7vb$vlp$1@dont-email.me> <5f42b78d.825092203@nntp.aioe.org> <XnsAC22D39B77F8Fadmin127001@144.76.35.198> <rhvvdq$ngu$1@gioia.aioe.org> <XnsAC236B3AF57ADadmin127001@144.76.35.198> <5f44a1ae.950565390@nntp.aioe.org> <rjc738$1hja$1@gioia.aioe.org> <XnsAC3468068DA93admin127001@144.76.35.198> <XnsAC39D44B35C7Eadmin127001@144.76.35.198> <rjso8v$1e4$1@gioia.aioe.org> <XnsAC3A90A273680admin127001@144.76.35.198>
Injection-Info: reader02.eternal-september.org; posting-host="96f02f840b597e64d0bdee0149debaf6";
logging-data="22235"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/pWJq23jSEkmpSr3t2CABDVZA6ka5WUIc="
User-Agent: Xnews/2009.05.01
Cancel-Lock: sha1:uf8kA63k3aWU5ap3R2OQ64BDQYA=
View all headers
On Wed, 16 Sep 2020 13:13:05 GMT, "Kerr-Mudd,John"
<notsaying@nospicedham.127.0.0.1> wrote:

On Wed, 16 Sep 2020 10:09:35 GMT, Terje Mathisen
<terje.mathisen@nospicedham.tmsw.no> wrote:

Kerr-Mudd,John wrote:
On Thu, 10 Sep 2020 09:13:34 GMT, "Kerr-Mudd,John"
<notsaying@nospicedham.127.0.0.1> wrote:

["spec" in other branch of this thread]

Finally!

20:51:03 Tuesday 15th September 2020

I assume you will print 1st, 2nd, 3rd followed by 4th...20th, then
21st,
22nd, 23rd followed by 24th to 30th and finally 31st?

Basically exceptions for numbers ending in 1,2,3 except when the
previous letter is '1'?

Well, of course. It has to be done properly.
Perhaps I should have waited a bit before going to press. (-:

[balances brackets]


in 256 bytes.

Seems trivial except for the day names and numbers. :-)

Terje


I guess a really clever, small, text decoder might make it trivial to
come in under the size limit!

Bah; my text encoding saves c. [70-4C] 36 bytes (5bit 3-9,a-y), but the
decoder costs 55!


I'll publish a hexdump after a bit to allow Wolfgang a go at trimming
it
down further (assuming he's still up for it).




--
Bah, and indeed, Humbug.



Subject: Re: small asm code (compo?)
From: Kerr-Mudd,John
Newsgroups: comp.lang.asm.x86
Organization: dis
Date: Thu, 1 Oct 2020 08:05 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: notsay...@nospicedham.127.0.0.1 (Kerr-Mudd,John)
Newsgroups: comp.lang.asm.x86
Subject: Re: small asm code (compo?)
Date: Thu, 1 Oct 2020 08:05:41 -0000 (UTC)
Organization: dis
Lines: 46
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <XnsAC495C849C302admin127001@144.76.35.198>
References: <XnsAC2181A62E105admin127001@144.76.35.198> <rhu7vb$vlp$1@dont-email.me> <5f42b78d.825092203@nntp.aioe.org> <XnsAC22D39B77F8Fadmin127001@144.76.35.198> <rhvvdq$ngu$1@gioia.aioe.org> <XnsAC236B3AF57ADadmin127001@144.76.35.198> <5f44a1ae.950565390@nntp.aioe.org> <rjc738$1hja$1@gioia.aioe.org> <XnsAC3468068DA93admin127001@144.76.35.198> <XnsAC39D44B35C7Eadmin127001@144.76.35.198> <rjr7ce$gkc$1@dont-email.me> <XnsAC3A657844E3admin127001@144.76.35.198> <XnsAC416DECB28BCadmin127001@144.76.35.198> <rkfm58$56m$1@dont-email.me>
Injection-Info: reader02.eternal-september.org; posting-host="1563be7453e3495b5ca6ee86acee9089";
logging-data="17466"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18DV92peIST2z1Se/UJo1HqM/eyBlEg9zc="
User-Agent: Xnews/2009.05.01
Cancel-Lock: sha1:WOoBvfN2ZZL7xd1FZbfUAd97Arg=
View all headers
On Wed, 23 Sep 2020 14:29:58 GMT, "Rick C. Hodgin"
<rick.c.hodgin@nospicedham.gmail.com> wrote:

On 9/23/20 5:48 AM, Kerr-Mudd,John wrote:
10:47:35 Wednesday 23rd September 2020

How about a 1st Oct deadline?

Works for me.  I tried this past weekend but couldn't get a decent
design.  Have too many other things on my mind I think.

I find these compos kind of exciting, even relaxing.  I'll put in some
time, but if it's not in by Oct 1, no worries.  Go forward.

I had an idea also that we could use a front-end loader to take a fixed
data payload and orient it in memory however we need to, allowing only
the data payload to be the actual size, using a common loader with
common abilities.

It might be an interesting way to setup things like POP CS to allow for
some interesting space savings by designing the code in a particular
way.

We may be able to do some of that with an EXE loader and ORG
statements,
but it would give us more options if we could use a common loader.


I didn't try any of that; just tight code; here you are Wolfgang, get
typing!

today1a4.com 256 bytes

BF240957B42CCD215188E831C9E859005841BE9701E850004E88F0E84A00B42A
CD214089C55198E84F00BE8B01A5A55688D0E8340080FC3198740A2C303C0473
04D1E001C6A588F099BEB501E82A005E4E58B164F7F1E80F0092E80C005A89D0
AACD2195B44CCD21A4D40A08E1740680CC308825470C30AAC391B020AAE309AC
A82075F9E3F2E2F7AAEBF464617920746873746E6472643A53756E4D6F6E5475
65735765646E6573546875727346726953617475724A616E7561727946656272
756172794D61726368417072696C4D61794A756E654A756C7941756775737453
657074656D6265724F63746F6265724E6F76656D626572446563656D62657258


--
Bah, and indeed, Humbug.



Subject: Re: small asm code (compo?)
From: Kerr-Mudd,John
Newsgroups: comp.lang.asm.x86
Organization: dis
Date: Thu, 1 Oct 2020 08:23 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: notsay...@nospicedham.127.0.0.1 (Kerr-Mudd,John)
Newsgroups: comp.lang.asm.x86
Subject: Re: small asm code (compo?)
Date: Thu, 1 Oct 2020 08:23:02 -0000 (UTC)
Organization: dis
Lines: 151
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <XnsAC495F761C484admin127001@144.76.35.198>
References: <XnsAC2181A62E105admin127001@144.76.35.198> <rhu7vb$vlp$1@dont-email.me> <5f42b78d.825092203@nntp.aioe.org> <XnsAC22D39B77F8Fadmin127001@144.76.35.198> <rhvvdq$ngu$1@gioia.aioe.org> <XnsAC236B3AF57ADadmin127001@144.76.35.198> <5f44a1ae.950565390@nntp.aioe.org> <rjc738$1hja$1@gioia.aioe.org> <XnsAC3468068DA93admin127001@144.76.35.198> <XnsAC39D44B35C7Eadmin127001@144.76.35.198> <rjr7ce$gkc$1@dont-email.me> <XnsAC3A657844E3admin127001@144.76.35.198> <XnsAC416DECB28BCadmin127001@144.76.35.198> <rkfm58$56m$1@dont-email.me> <XnsAC495C849C302admin127001@144.76.35.198>
Injection-Info: reader02.eternal-september.org; posting-host="1563be7453e3495b5ca6ee86acee9089";
logging-data="22548"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX194EmfBEHDrFFPPVVqNLcOu2BN3NyecJC4="
User-Agent: Xnews/2009.05.01
Cancel-Lock: sha1:T+9tGMuXA0buCsQYICivmo5Bqgw=
View all headers
On Thu, 01 Oct 2020 08:05:41 GMT, "Kerr-Mudd,John"
<notsaying@nospicedham.127.0.0.1> wrote:

On Wed, 23 Sep 2020 14:29:58 GMT, "Rick C. Hodgin"
<rick.c.hodgin@nospicedham.gmail.com> wrote:

On 9/23/20 5:48 AM, Kerr-Mudd,John wrote:
10:47:35 Wednesday 23rd September 2020

How about a 1st Oct deadline?

Works for me.  I tried this past weekend but couldn't get a decent
design.  Have too many other things on my mind I think.

I find these compos kind of exciting, even relaxing.  I'll put in some
time, but if it's not in by Oct 1, no worries.  Go forward.

I had an idea also that we could use a front-end loader to take a
fixed
data payload and orient it in memory however we need to, allowing only
the data payload to be the actual size, using a common loader with
common abilities.

It might be an interesting way to setup things like POP CS to allow
for
some interesting space savings by designing the code in a particular
way.

We may be able to do some of that with an EXE loader and ORG
statements,
but it would give us more options if we could use a common loader.


I didn't try any of that; just tight code; here you are Wolfgang, get
typing!

today1a4.com 256 bytes

BF240957B42CCD215188E831C9E859005841BE9701E850004E88F0E84A00B42A
CD214089C55198E84F00BE8B01A5A55688D0E8340080FC3198740A2C303C0473
04D1E001C6A588F099BEB501E82A005E4E58B164F7F1E80F0092E80C005A89D0
AACD2195B44CCD21A4D40A08E1740680CC308825470C30AAC391B020AAE309AC
A82075F9E3F2E2F7AAEBF464617920746873746E6472643A53756E4D6F6E5475
65735765646E6573546875727346726953617475724A616E7561727946656272
756172794D61726368417072696C4D61794A756E654A756C7941756775737453
657074656D6265724F63746F6265724E6F76656D626572446563656D62657258


All right; to give you a head start here's a debug dump (may wrap)

-u100 l8a
16A6:0100 BF 24 09       mov          di,0924
16A6:0103 57             push         di
16A6:0104 B4 2C          mov          ah,2C
16A6:0106 CD 21          int          21
16A6:0108 51             push         cx
16A6:0109 88 E8          mov          al,ch
16A6:010B 31 C9          xor          cx,cx
16A6:010D E8 59 00       call         0169
16A6:0110 58             pop          ax
16A6:0111 41             inc          cx
16A6:0112 BE 97 01       mov          si,0197
16A6:0115 E8 50 00       call         0168
16A6:0118 4E             dec          si
16A6:0119 88 F0          mov          al,dh
16A6:011B E8 4A 00       call         0168
16A6:011E B4 2A          mov          ah,2A
16A6:0120 CD 21          int          21
16A6:0122 40             inc          ax
16A6:0123 89 C5          mov          bp,ax
16A6:0125 51             push         cx
16A6:0126 98             cbw         
16A6:0127 E8 4F 00       call         0179
16A6:012A BE 8B 01       mov          si,018B
16A6:012D A5             movsw       
16A6:012E A5             movsw       
16A6:012F 56             push         si
16A6:0130 88 D0          mov          al,dl
16A6:0132 E8 34 00       call         0169
16A6:0135 80 FC 31       cmp          ah,31
16A6:0138 98             cbw         
16A6:0139 74 0A          jz           0145
16A6:013B 2C 30          sub          al,30
16A6:013D 3C 04          cmp          al,04
16A6:013F 73 04          jnb          0145
16A6:0141 D1 E0          shl          ax,1
16A6:0143 01 C6          add          si,ax
16A6:0145 A5             movsw       
16A6:0146 88 F0          mov          al,dh
16A6:0148 99             cwd         
16A6:0149 BE B5 01       mov          si,01B5
16A6:014C E8 2A 00       call         0179
16A6:014F 5E             pop          si
16A6:0150 4E             dec          si
16A6:0151 58             pop          ax
16A6:0152 B1 64          mov          cl,64
16A6:0154 F7 F1          div          cx
16A6:0156 E8 0F 00       call         0168
16A6:0159 92             xchg         ax,dx
16A6:015A E8 0C 00       call         0169
16A6:015D 5A             pop          dx
16A6:015E 89 D0          mov          ax,dx
16A6:0160 AA             stosb       
16A6:0161 CD 21          int          21
16A6:0163 95             xchg         ax,bp
16A6:0164 B4 4C          mov          ah,4C
16A6:0166 CD 21          int          21
16A6:0168 A4             movsb       
16A6:0169 D4 0A          aam          0A
16A6:016B 08 E1          or           cl,ah
16A6:016D 74 06          jz           0175
16A6:016F 80 CC 30       or           ah,30
16A6:0172 88 25          mov          [di],ah
16A6:0174 47             inc          di
16A6:0175 0C 30          or           al,30
16A6:0177 AA             stosb       
16A6:0178 C3             ret         
16A6:0179 91             xchg         ax,cx
16A6:017A B0 20          mov          al,20
16A6:017C AA             stosb       
16A6:017D E3 09          jcxzw        0188
16A6:017F AC             lodsb       
16A6:0180 A8 20          test         al,20
16A6:0182 75 F9          jnz          017D
16A6:0184 E3 F2          jcxzw        0178
16A6:0186 E2 F7          loopw        017F
16A6:0188 AA             stosb       
16A6:0189 EB F4          jmp          017F

-d18b
16A6:018B 64 61 79 20-74 68 73 74-6E 64 72 64-3A 53 75 6E  day
thstndrd:Sun
16A6:019B 4D 6F 6E 54-75 65 73 57-65 64 6E 65-73 54 68 75 
MonTuesWednesThu
16A6:01AB 72 73 46 72-69 53 61 74-75 72 4A 61-6E 75 61 72 
rsFriSaturJanuar
16A6:01BB 79 46 65 62-72 75 61 72-79 4D 61 72-63 68 41 70 
yFebruaryMarchAp
16A6:01CB 72 69 6C 4D-61 79 4A 75-6E 65 4A 75-6C 79 41 75 
rilMayJuneJulyAu
16A6:01DB 67 75 73 74-53 65 70 74-65 6D 62 65-72 4F 63 74 

Click here to read the complete article
Subject: Re: small asm code (compo?)
From: wolfgang kern
Newsgroups: comp.lang.asm.x86
Organization: KESYS-development
Date: Sat, 3 Oct 2020 17:01 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: nowh...@nospicedham.never.at (wolfgang kern)
Newsgroups: comp.lang.asm.x86
Subject: Re: small asm code (compo?)
Date: Sat, 3 Oct 2020 19:01:35 +0200
Organization: KESYS-development
Lines: 99
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <rlaash$df9$1@gioia.aioe.org>
References: <XnsAC2181A62E105admin127001@144.76.35.198>
<rhu7vb$vlp$1@dont-email.me> <5f42b78d.825092203@nntp.aioe.org>
<XnsAC22D39B77F8Fadmin127001@144.76.35.198> <rhvvdq$ngu$1@gioia.aioe.org>
<XnsAC236B3AF57ADadmin127001@144.76.35.198>
<5f44a1ae.950565390@nntp.aioe.org> <rjc738$1hja$1@gioia.aioe.org>
<XnsAC3468068DA93admin127001@144.76.35.198>
<XnsAC39D44B35C7Eadmin127001@144.76.35.198> <rjr7ce$gkc$1@dont-email.me>
<XnsAC3A657844E3admin127001@144.76.35.198>
<XnsAC416DECB28BCadmin127001@144.76.35.198> <rkfm58$56m$1@dont-email.me>
<XnsAC495C849C302admin127001@144.76.35.198>
Reply-To: nowhere@never.at
Mime-Version: 1.0
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="ad115db70de8e26232e679e3d367ec7e";
logging-data="17697"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18yOxtTzwuB76NX+N42a8hcy5iYUZuFT3Q="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.2.2
Cancel-Lock: sha1:YsTlQovYGExHg0SYMqcXP2Mrrvo=
View all headers
On 01.10.2020 10:05, Kerr-Mudd,John wrote:
....
I didn't try any of that; just tight code; here you are Wolfgang, get
typing!

today1a4.com 256 byte

I remember vague on a batch-file which printed date&time to screen, it was much shorter than this :)
__
wolfgang

wouldn't BIOS calls instead of DOS-FN make it shorter ?

BF2409
57
B42C
CD21
51
88E8
31C9
E85900     ;call
58
41
BE9701
E85000     ;call
4E
88F0
E84A00     ;call
B42A
CD21       ;get
40
89C5
51
98
E84F00
BE8B01
A5A5       ;dup
56
88D0
E83400     ;call
80FC31
98
740A
2C30
3C04
7304
D1E0
01C6
A5
88F0
99
BEB501
E82A00    ;call
5E
4E
58
B164
F7F1
E80F00    ;call
92
E80C00    ;call
5A
89D0
AA
CD21      ;put
95
B44C
CD21      ;end

:SubroutineA
A4
D40A
08E1
7406
80CC30
882547
0C30
AA
C3

:SubroutineB
91
B020AA
E309
AC
A820
75F9
E3F2
E2F7
AA
EBF4

:text
64617920746873746E6472643A53756E4D6F6E5475
65735765646E6573546875727346726953617475724A616E7561727946656272
756172794D61726368417072696C4D61794A756E654A756C7941756775737453
657074656D6265724F63746F6265724E6F76656D626572446563656D62657258



Pages:123
rocksolid light 0.7.2
clearneti2ptor