Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  nodelist  faq  login

The first version always gets thrown away.


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: small asm code (compo?)
From: Kerr-Mudd,John
Newsgroups: comp.lang.asm.x86
Organization: dis
Date: Sat, 22 Aug 2020 11:44 UTC
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: notsay...@127.0.0.1 (Kerr-Mudd,John)
Newsgroups: comp.lang.asm.x86
Subject: small asm code (compo?)
Date: Sat, 22 Aug 2020 11:44:41 -0000 (UTC)
Organization: dis
Lines: 27
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <XnsAC2181A62E105admin127001@144.76.35.198>
Injection-Info: reader02.eternal-september.org; posting-host="45bb22868bc4ece061f4b356c40b1721";
logging-data="21776"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+P8MEvoP5KCwTH72CXS4I8BIVUxYnd9Aw="
User-Agent: Xnews/2006.08.24
Cancel-Lock: sha1:cjJdbYH5T9KmTvE28iH8/VbeE1o=
View all headers
Spec is to show the day of week as a literal string;

given these DOS functions (maybe others?)

get daynum: DOS has int 0x21, fn 0x2A which returns al as 0-6 (Sun-Sat)

print: int 21, fn 2 with dl=char
  or int 21, fn 9 with dx pointing to a string terminated with a $ (x24)

terminate with return code: int 0x21 fn 0x4C, code in al


Write shortest programs to show day string of the current day;

1) full string e.g. "Monday", "Saturday"
2) 3 letter e.g. "Mon", "Sat"
3) 2 letter e.g. "Mo", "Sa"


My current shortests are:
1) 67
2) 49
3) 40

--
Bah, and indeed, Humbug.



Subject: Re: small asm code (compo?)
From: Terje Mathisen
Newsgroups: comp.lang.asm.x86
Organization: Aioe.org NNTP Server
Date: Sat, 22 Aug 2020 18:52 UTC
References: 1
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader01.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: Sat, 22 Aug 2020 20:52:32 +0200
Organization: Aioe.org NNTP Server
Lines: 57
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <rhrphe$1kru$1@gioia.aioe.org>
References: <XnsAC2181A62E105admin127001@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="38c8f5032b68c84fa124294c6bdf5693";
logging-data="4591"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Z0GHMRvN+tD5XLIbYbFisHFQO5gs2blU="
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:8+WHulgzfql8+alK6ackg/k7UVU=
View all headers
Kerr-Mudd,John wrote:
Spec is to show the day of week as a literal string;

given these DOS functions (maybe others?)

get daynum: DOS has int 0x21, fn 0x2A which returns al as 0-6 (Sun-Sat)

print: int 21, fn 2 with dl=char
   or int 21, fn 9 with dx pointing to a string terminated with a $ (x24)

terminate with return code: int 0x21 fn 0x4C, code in al


Write shortest programs to show day string of the current day;

1) full string e.g. "Monday", "Saturday"
2) 3 letter e.g. "Mon", "Sat"
3) 2 letter e.g. "Mo", "Sa"


My current shortests are:
1) 67
2) 49
3) 40

That seems somewhat bogus:

If you can do Mo, Tu, We, Th etc in 40 bytes, then adding one more byte to each string should only result in 7 more bytes?

OTOH, if you do all the two-letter abbreviations as two Dos calls and the 3 and 6-8 letter versions with '$' terminated strings then it makes more sense. :-)

For the two-letter case:

mov ah,2ah
int 21h
cbw
mov si,ax
mov dl,first_letter[si]
call print1
mov dl,second_letter[si]
print1:
mov ah,2
int 21h
ret ;; Return after first letter, exit after second
first_letter db "SMTWTFS"
second_letter db "uouehra"

Close to your own?

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



Subject: Re: small asm code (compo?)
From: wolfgang kern
Newsgroups: comp.lang.asm.x86
Organization: KESYS-development
Date: Sun, 23 Aug 2020 08:11 UTC
References: 1 2
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader01.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: Sun, 23 Aug 2020 10:11:34 +0200
Organization: KESYS-development
Lines: 62
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <rht8bm$n1c$1@gioia.aioe.org>
References: <XnsAC2181A62E105admin127001@144.76.35.198>
<rhrphe$1kru$1@gioia.aioe.org>
Reply-To: nowhere@never.at
Mime-Version: 1.0
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="38c8f5032b68c84fa124294c6bdf5693";
logging-data="10618"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+7xm1xeMzAf3+acPDhYO1SdysdJM9/xxM="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.1.1
Cancel-Lock: sha1:7lc5ZDBX856MVjx/aYj+KtN92uo=
View all headers
On 22.08.2020 20:52, Terje Mathisen wrote:
Kerr-Mudd,John wrote:
Spec is to show the day of week as a literal string;

given these DOS functions (maybe others?)

get daynum: DOS has int 0x21, fn 0x2A which returns al as 0-6 (Sun-Sat)

print: int 21, fn 2 with dl=char
   or int 21, fn 9 with dx pointing to a string terminated with a $ (x24)

terminate with return code: int 0x21 fn 0x4C, code in al


Write shortest programs to show day string of the current day;

1) full string e.g. "Monday", "Saturday"
2) 3 letter e.g. "Mon", "Sat"
3) 2 letter e.g. "Mo", "Sa"


My current shortests are:
1) 67
2) 49
3) 40

That seems somewhat bogus:

If you can do Mo, Tu, We, Th etc in 40 bytes, then adding one more byte to each string should only result in 7 more bytes?

OTOH, if you do all the two-letter abbreviations as two Dos calls and the 3 and 6-8 letter versions with '$' terminated strings then it makes more sense. :-)

For the two-letter case:

let me check

00 mov ah,2ah
02 int 21h
04 cbw
05 mov si,ax                  ;1 byte: xchg ax,si
07 mov dl,first_letter[si]    ;
0a call print1                ;sure about si remain ?
0d mov dl,second_letter[si]
  print1:
10 mov ah,2
12 int 21h
13 ret    ;; Return after first letter, exit after second
15 first_letter db "SMTWTFS"
1c second_letter db "uouehra"
23

Close to your own?

Terje

Not an A :) missing "$"
__
wolfgang



Subject: Re: small asm code (compo?)
From: Kerr-Mudd,John
Newsgroups: comp.lang.asm.x86
Organization: dis
Date: Sun, 23 Aug 2020 09:43 UTC
References: 1 2 3
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: Sun, 23 Aug 2020 09:43:21 -0000 (UTC)
Organization: dis
Lines: 111
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <XnsAC226D1337656admin127001@144.76.35.198>
References: <XnsAC2181A62E105admin127001@144.76.35.198> <rhrphe$1kru$1@gioia.aioe.org> <rht8bm$n1c$1@gioia.aioe.org>
Injection-Info: reader02.eternal-september.org; posting-host="38c8f5032b68c84fa124294c6bdf5693";
logging-data="6808"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/qwcxzWkLudrMXUm4m/HbSEbSS7oWFPNo="
User-Agent: Xnews/2006.08.24
Cancel-Lock: sha1:ZMQMtnCOZUaiQdjPCfAiW406ouU=
View all headers
On Sun, 23 Aug 2020 08:11:34 GMT, wolfgang kern
<nowhere@nospicedham.never.at> wrote:

On 22.08.2020 20:52, Terje Mathisen wrote:
Kerr-Mudd,John wrote:
Spec is to show the day of week as a literal string;

plain 8086 for me!


given these DOS functions (maybe others?)

get daynum: DOS has int 0x21, fn 0x2A which returns al as 0-6
(Sun-Sat)

print: int 21, fn 2 with dl=char

(x24)

terminate with return code: int 0x21 fn 0x4C, code in al

I forgot that I 'up' the return code/errorlevel, I want 1 for Sun, 7 for
Saturday.


Write shortest programs to show day string of the current day;

1) full string e.g. "Monday", "Saturday"
2) 3 letter e.g. "Mon", "Sat"
3) 2 letter e.g. "Mo", "Sa"


My current shortests are:
1) 67
2) 49
3) 40

That seems somewhat bogus:

If you can do Mo, Tu, We, Th etc in 40 bytes, then adding one more
byte to each string should only result in 7 more bytes?

OTOH, if you do all the two-letter abbreviations as two Dos calls and
the 3 and 6-8 letter versions with '$' terminated strings then it
makes more sense. :-)

Yes.

For the two-letter case:

let me check

00 mov ah,2ah
02 int 21h
04 cbw
05 mov si,ax                  ;1 byte: xchg ax,si
07 mov dl,first_letter[si]    ;
0a call print1                ;sure about si remain ?
yes, si same
0d mov dl,second_letter[si]
  print1:
10 mov ah,2
12 int 21h

15 first_letter db "SMTWTFS"
1c second_letter db "uouehra"
23

Close to your own?

Terje

Not an A :) missing "$"
__
wolfgang


No the $ is only used for the fn 9 call, it doesn't get printed.
But it fails as there's no errorlevel set by 'ret'.

Here's one of mine: (42)

cpu 8086  ; show 3^w 2  chr day str l42
org 0x100 ;

         mov ah,0x2A         ; get system date
         int 0x21            ; al daynum, 0=sun; cx:dx
        push ax
         cbw
         shl ax,1
         xchg si,ax          ; to ix reg
         mov ah,2
pnc:        
         mov dl,[dystrs+si]  ; getc
         int 0x21            ; al lost
         inc si
         dec bx
         jpe pnc             ; prt twice
        pop ax
         mov ah,0x4C
         inc ax
int 0x21            ; erl 1=Sun

dystrs   db 'SuMoTuWeThFrSa'




--
Bah, and indeed, Humbug.



Subject: Re: small asm code (compo?)
From: Kerr-Mudd,John
Newsgroups: comp.lang.asm.x86
Organization: dis
Date: Sun, 23 Aug 2020 10:07 UTC
References: 1 2 3 4
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: Sun, 23 Aug 2020 10:07:01 -0000 (UTC)
Organization: dis
Lines: 142
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <XnsAC2271167FA04admin127001@144.76.35.198>
References: <XnsAC2181A62E105admin127001@144.76.35.198> <rhrphe$1kru$1@gioia.aioe.org> <rht8bm$n1c$1@gioia.aioe.org> <XnsAC226D1337656admin127001@144.76.35.198>
Injection-Info: reader02.eternal-september.org; posting-host="38c8f5032b68c84fa124294c6bdf5693";
logging-data="16766"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18nEB/uS6rQkj+Y/eiSnynSD3fXCNVltzA="
User-Agent: Xnews/2006.08.24
Cancel-Lock: sha1:3jXXsxrASFr/Ox0qP3/CXrqA4Ag=
View all headers
On Sun, 23 Aug 2020 09:43:21 GMT, "Kerr-Mudd,John"
<notsaying@nospicedham.127.0.0.1> wrote:

On Sun, 23 Aug 2020 08:11:34 GMT, wolfgang kern
<nowhere@nospicedham.never.at> wrote:

On 22.08.2020 20:52, Terje Mathisen wrote:
Kerr-Mudd,John wrote:
Spec is to show the day of week as a literal string;

plain 8086 for me!


given these DOS functions (maybe others?)

get daynum: DOS has int 0x21, fn 0x2A which returns al as 0-6
(Sun-Sat)

print: int 21, fn 2 with dl=char

(x24)

terminate with return code: int 0x21 fn 0x4C, code in al

I forgot that I 'up' the return code/errorlevel, I want 1 for Sun, 7
for
Saturday.


Write shortest programs to show day string of the current day;

1) full string e.g. "Monday", "Saturday"
2) 3 letter e.g. "Mon", "Sat"
3) 2 letter e.g. "Mo", "Sa"


My current shortests are:
1) 67
2) 49
3) 40

That seems somewhat bogus:

If you can do Mo, Tu, We, Th etc in 40 bytes, then adding one more
byte to each string should only result in 7 more bytes?

OTOH, if you do all the two-letter abbreviations as two Dos calls and
the 3 and 6-8 letter versions with '$' terminated strings then it
makes more sense. :-)

Yes.

For the two-letter case:

let me check

00 mov ah,2ah
02 int 21h
04 cbw
05 mov si,ax                  ;1 byte: xchg ax,si
07 mov dl,first_letter[si]    ;
0a call print1                ;sure about si remain ?
yes, si same
0d mov dl,second_letter[si]
  print1:
10 mov ah,2
12 int 21h

15 first_letter db "SMTWTFS"
1c second_letter db "uouehra"
23

Close to your own?

Terje

Not an A :) missing "$"
__
wolfgang


No the $ is only used for the fn 9 call, it doesn't get printed.
But it fails as there's no errorlevel set by 'ret'.

Here's one of mine: (42)

cpu 8086  ; show 3^w 2  chr day str l42
org 0x100 ;

         mov ah,0x2A         ; get system date
         int 0x21            ; al daynum, 0=sun; cx:dx
        push ax
         cbw
         shl ax,1
         xchg si,ax          ; to ix reg
         mov ah,2
pnc:        
         mov dl,[dystrs+si]  ; getc
         int 0x21            ; al lost
         inc si
         dec bx
         jpe pnc             ; prt twice
        pop ax
         mov ah,0x4C
         inc ax
      int 0x21            ; erl 1=Sun

dystrs   db 'SuMoTuWeThFrSa'

I also forgot to state in the rules that we can assume std DOS startup
values:
ax=0, bx=0,cx=progsize (so ch=0 for small), dx=cs=ds=es, si=IP=0100,
di=FFFE, bp=09xx

 
Terje style 41

cpu 8086  ; show 2 chr day str l41
org 0x100 ;

         mov ah,0x2A         ; get system date
         int 0x21            ; al daynum, 0=sun; cx:dx
        push ax
         cbw
         xchg bx,ax          ; to ix reg
         mov ah,2            ; dos prtc
         mov dl,[first_letter+bx]  ; get 1st
         int 0x21            ; al lost
         mov dl,[second_letter+bx]  ; get 2nd
         int 0x21
        pop ax
         mov ah,0x4C
         inc ax
         int 0x21            ; erl 1=Sun

first_letter  db 'SMTWTFS'
second_letter db 'uouehra'


--
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: Sun, 23 Aug 2020 16:27 UTC
References: 1 2
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: Sun, 23 Aug 2020 16:27:48 GMT
Organization: Aioe.org NNTP Server
Lines: 34
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <5f4298d0.817223781@nntp.aioe.org>
References: <XnsAC2181A62E105admin127001@144.76.35.198> <rhrphe$1kru$1@gioia.aioe.org>
Injection-Info: reader02.eternal-september.org; posting-host="38c8f5032b68c84fa124294c6bdf5693";
logging-data="19674"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/3xcS51n4fNAPK9ub0PPAHIyI77Ccb3rA="
Cancel-Lock: sha1:bRBLP+xFnkR1FasQCJx2eBWAdDo=
View all headers
On Sat, 22 Aug 2020 20:52:32 +0200, Terje Mathisen
<terje.mathisen@nospicedham.tmsw.no> wrote:
...
For the two-letter case:

mov ah,2ah
int 21h
cbw
mov si,ax
mov dl,first_letter[si]
call print1
mov dl,second_letter[si]
print1:
mov ah,2
int 21h
ret ;; Return after first letter, exit after second
first_letter db "SMTWTFS"
second_letter db "uouehra"

Here's a different version:
mov ah,2ah
int 21h
mov bl,al ; bx 0 on entry
shl bl,1
mov ah,2
mov dx,[daystr+bx]
int 21h
mov dl,dh
int 21h
ret
daystr db "SuMoTuWeThFrSa"
--
aen



Subject: Re: small asm code (compo?)
From: Rick C. Hodgin
Newsgroups: comp.lang.asm.x86
Organization: Liberty Software Foundation
Date: Sun, 23 Aug 2020 17:11 UTC
References: 1
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader01.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: Sun, 23 Aug 2020 13:11:07 -0400
Organization: Liberty Software Foundation
Lines: 53
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <rhu7vb$vlp$1@dont-email.me>
References: <XnsAC2181A62E105admin127001@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="38c8f5032b68c84fa124294c6bdf5693";
logging-data="6383"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19K4eeAlJmDL2OWgaIHc416zZ52m6f8D3c="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
Thunderbird/68.10.0
Cancel-Lock: sha1:1okA163nAnxTaiLyeL6QqNfy0fI=
View all headers
On 8/22/20 7:44 AM, Kerr-Mudd,John wrote:
Spec is to show the day of week as a literal string;

given these DOS functions (maybe others?)

get daynum: DOS has int 0x21, fn 0x2A which returns al as 0-6 (Sun-Sat)

print: int 21, fn 2 with dl=char
   or int 21, fn 9 with dx pointing to a string terminated with a $ (x24)

terminate with return code: int 0x21 fn 0x4C, code in al


Write shortest programs to show day string of the current day;

1) full string e.g. "Monday", "Saturday"
2) 3 letter e.g. "Mon", "Sat"
3) 2 letter e.g. "Mo", "Sa"


My current shortests are:
1) 67
2) 49
3) 40

17 bytes code, 32 bytes code + data.

; Open Watcom 16-bit DOS EXE small memory model:
..MODEL small
..8086

..data
     days BYTE "SuMoTuWeThFrSa$"

..code
     test_ PROC PUBLIC
         mov     ah,2ah
         int     21h
         cbw
         mov     bx,ax
         add     bx,offset days
         mov     byte ptr [bx+2],'$'
         mov     dx,bx
         mov     ah,9
         int     21h
         ret
     test_ ENDP

END

--
Rick C. Hodgin



Subject: Re: small asm code (compo?)
From: aen...@nospicedham.spamtrap.com
Newsgroups: comp.lang.asm.x86
Organization: Aioe.org NNTP Server
Date: Sun, 23 Aug 2020 18:41 UTC
References: 1 2
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: Sun, 23 Aug 2020 18:41:33 GMT
Organization: Aioe.org NNTP Server
Lines: 17
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <5f42b78d.825092203@nntp.aioe.org>
References: <XnsAC2181A62E105admin127001@144.76.35.198> <rhu7vb$vlp$1@dont-email.me>
Injection-Info: reader02.eternal-september.org; posting-host="38c8f5032b68c84fa124294c6bdf5693";
logging-data="7847"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+VadlglRvkVx2I/K6ZT4BUTg/SCNeLWT4="
Cancel-Lock: sha1:lFh/VFwj+dUICDgtv+FBbrqJFsE=
View all headers
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
--
aen



Subject: Re: small asm code (compo?)
From: Kerr-Mudd,John
Newsgroups: comp.lang.asm.x86
Organization: dis
Date: Sun, 23 Aug 2020 19:48 UTC
References: 1 2 3
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: Sun, 23 Aug 2020 19:48:06 -0000 (UTC)
Organization: dis
Lines: 26
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <XnsAC22D39B77F8Fadmin127001@144.76.35.198>
References: <XnsAC2181A62E105admin127001@144.76.35.198> <rhu7vb$vlp$1@dont-email.me> <5f42b78d.825092203@nntp.aioe.org>
Injection-Info: reader02.eternal-september.org; posting-host="38c8f5032b68c84fa124294c6bdf5693";
logging-data="29672"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18XTMeNb/o4Ufb48ipyMYdSfHltoxuD5GA="
User-Agent: Xnews/2006.08.24
Cancel-Lock: sha1:nJwN4Lfv0T7TLJt/V1tekhBIeb8=
View all headers
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?)

--
Bah, and indeed, Humbug.



Subject: Re: small asm code (compo?)
From: Rick C. Hodgin
Newsgroups: comp.lang.asm.x86
Organization: Liberty Software Foundation
Date: Sun, 23 Aug 2020 21:14 UTC
References: 1 2 3
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader01.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: Sun, 23 Aug 2020 17:14:13 -0400
Organization: Liberty Software Foundation
Lines: 21
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <rhum75$qc8$1@dont-email.me>
References: <XnsAC2181A62E105admin127001@144.76.35.198>
<rhu7vb$vlp$1@dont-email.me> <5f42b78d.825092203@nntp.aioe.org>
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="38c8f5032b68c84fa124294c6bdf5693";
logging-data="32458"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18XmC1nAjjojagQ5L6bJc7uOYi3zuwivVc="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
Thunderbird/68.10.0
Cancel-Lock: sha1:t2yW8vdaJvY1wG4cImwH7lYfp5M=
View all headers
On 8/23/20 2:41 PM, 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

I would've found that bug yesterday or tomorrow. :-)

--
Rick C. Hodgin



Subject: Re: small asm code (compo?)
From: Rick C. Hodgin
Newsgroups: comp.lang.asm.x86
Organization: Liberty Software Foundation
Date: Sun, 23 Aug 2020 21:19 UTC
References: 1 2 3 4
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader01.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: Sun, 23 Aug 2020 17:19:14 -0400
Organization: Liberty Software Foundation
Lines: 39
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <rhumgj$sv4$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>
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="38c8f5032b68c84fa124294c6bdf5693";
logging-data="32550"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Njpayl98UxvlEFJ78zXcvO1uUCGg2ayU="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
Thunderbird/68.10.0
Cancel-Lock: sha1:yK30WpkdQ7ysr4WRllZrrC7fGUI=
View all headers
On 8/23/20 3:48 PM, Kerr-Mudd,John wrote:
Anyone want to try the long version? ('Monday' 'Tuesday' etc?)

21 bytes code plus 47 bytes data = 68 bytes.

..MODEL small
..8086

..data
     long_days BYTE 0,"Sun$"
               BYTE 1,"Mon$"
               BYTE 2,"Tues$"
               BYTE 3,"Wednes$"
               BYTE 4,"Thurs$"
               BYTE 5,"Fri$"
               BYTE 6,"Satur$"
     day BYTE "day$"

..code
     test2_ PROC PUBLIC
         mov     ah,2ah
         int     21h
         mov     di,offset long_days
         std
         scasb
         mov     dx,di
         inc     dx
         mov     ah,9
         int     21h
         mov     dx,offset day
         int     21h
         ret
     test2_ ENDP

END

--
Rick C. Hodgin



Subject: Re: small asm code (compo?)
From: aen...@nospicedham.spamtrap.com
Newsgroups: comp.lang.asm.x86
Organization: Aioe.org NNTP Server
Date: Sun, 23 Aug 2020 22:51 UTC
References: 1 2 3 4
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: Sun, 23 Aug 2020 22:51:17 GMT
Organization: Aioe.org NNTP Server
Lines: 24
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <5f42f20d.840067937@nntp.aioe.org>
References: <XnsAC2181A62E105admin127001@144.76.35.198> <rhu7vb$vlp$1@dont-email.me> <5f42b78d.825092203@nntp.aioe.org> <rhum75$qc8$1@dont-email.me>
Injection-Info: reader02.eternal-september.org; posting-host="16dd41ddef663530a738a766c0e9ee63";
logging-data="18693"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+/VURiPfP/LkABV0Of3jiZnMN/6R7Baqs="
Cancel-Lock: sha1:xfJVGjfgtA2NR1baisZ13F1NuKI=
View all headers
On Sun, 23 Aug 2020 17:14:13 -0400, "Rick C. Hodgin"
<rick.c.hodgin@nospicedham.gmail.com> wrote:
...
I would've found that bug yesterday or tomorrow. :-)

Yeah, it isn't Sunday every day :-)

I like the approach though, and it can easily be adapted to 3 letters:

mov ah,2ah
int 21h
mul byte [multiplier]
mov bx,ax
add bx,days
mov byte [bx+3],'$'
mov dx,bx
mov ah,9
int 21h
ret
days db "SunMonTueWedThuFriSat"
multiplier db 3
--
aen



Subject: Re: small asm code (compo?)
From: aen...@nospicedham.spamtrap.com
Newsgroups: comp.lang.asm.x86
Organization: Aioe.org NNTP Server
Date: Mon, 24 Aug 2020 03:43 UTC
References: 1 2 3 4 5
Path: i2pn2.org!i2pn.org!news.swapon.de!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: Mon, 24 Aug 2020 03:43:58 GMT
Organization: Aioe.org NNTP Server
Lines: 33
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <5f433771.857832031@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> <rhumgj$sv4$1@dont-email.me>
Injection-Info: reader02.eternal-september.org; posting-host="16dd41ddef663530a738a766c0e9ee63";
logging-data="31911"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+rDsWfA10GjppfOxni5DuNhK3kTOiph/s="
Cancel-Lock: sha1:Xykg3KGXjsJWmxWLItNcdiCdZpo=
View all headers
On Sun, 23 Aug 2020 17:19:14 -0400, "Rick C. Hodgin"
<rick.c.hodgin@nospicedham.gmail.com> wrote:
...
        mov     ah,2ah
        int     21h
        mov     di,offset long_days
        std
        scasb
        mov     dx,di
        inc     dx
        mov     ah,9
        int     21h
        mov     dx,offset day
        int     21h
        ret
Try:
         mov     ah,2ah
         int     21h
         mov     di,long_days
         cld
         repne   scasb
         mov     dx,di
         mov     ah,9
         int     21h
         mov     dx,day
         int     21h
         ret
long_days db 0,"Sun$",1,"Mon$",2,"Tues$",3,"Wednes$"
          db 4,"Thurs$",5,"Fri$",6,"Satur$"
day db "day$"
--
aen



Subject: Re: small asm code (compo?)
From: Terje Mathisen
Newsgroups: comp.lang.asm.x86
Organization: Aioe.org NNTP Server
Date: Mon, 24 Aug 2020 08:57 UTC
References: 1 2 3 4
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader01.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: Mon, 24 Aug 2020 10:57:30 +0200
Organization: Aioe.org NNTP Server
Lines: 37
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <rhvvdq$ngu$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>
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="16dd41ddef663530a738a766c0e9ee63";
logging-data="2903"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18AP+D2jaZgYznvg1B8SPI7pMf1mATD6RI="
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:b3s0JeBq0J9h6e21aK28B+dcJnM=
View all headers
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?

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: Mon, 24 Aug 2020 09:27 UTC
References: 1 2 3 4 5
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: Mon, 24 Aug 2020 09:27:52 -0000 (UTC)
Organization: dis
Lines: 68
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <XnsAC236A735C42Cadmin127001@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>
Injection-Info: reader02.eternal-september.org; posting-host="16dd41ddef663530a738a766c0e9ee63";
logging-data="7860"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18y0d3jEzcaDy4yFfTYaXUG9CrlVyGVNHE="
User-Agent: Xnews/2006.08.24
Cancel-Lock: sha1:VAQL0qk2FQsVxANSE1T/58Ruqdo=
View all headers
On Sun, 23 Aug 2020 21:19:14 GMT, "Rick C. Hodgin"
<rick.c.hodgin@nospicedham.gmail.com> wrote:

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

21 bytes code plus 47 bytes data = 68 bytes.

.MODEL small
.8086

.data
     long_days BYTE 0,"Sun$"
               BYTE 1,"Mon$"
               BYTE 2,"Tues$"
               BYTE 3,"Wednes$"
               BYTE 4,"Thurs$"
               BYTE 5,"Fri$"
               BYTE 6,"Satur$"
     day BYTE "day$"

.code
     test2_ PROC PUBLIC
         mov     ah,2ah
         int     21h
         mov     di,offset long_days
         std
         scasb
         mov     dx,di
         inc     dx
         mov     ah,9
         int     21h
         mov     dx,offset day
         int     21h
         ret
     test2_ ENDP

END


All those extra '$'s! I can see no-one wants to set the return code on
exit, it adds to the fun of retaining the day number. 74 with rc

cpu 8086  ; show day str l74
org 0x100 ; lookup, dbl prt
         mov     ah,0x2A     ; get system date
         int     0x21        ; al daynum, 0=sun; cx:dx
   push ax
         mov     di,long_days
         repne   scasb       ; find daystr
         mov     dx,di
         mov     ah,9
         int     0x21
         mov     dx,day      ; prt 'day'
         int     0x21
        pop ax
      ;   add ax,0x100*(0x4C-0x2A)+1
         mov     ah,0x4C     ; exit with rc
         inc ax
         int 0x21
        
long_days db 0,"Sun$",1,"Mon$",2,"Tues$",3,"Wednes$"
          db 4,"Thurs$",5,"Fri$",6,"Satur$"
day db "day$"

--
Bah, and indeed, Humbug.



Subject: Re: small asm code (compo?)
From: Kerr-Mudd,John
Newsgroups: comp.lang.asm.x86
Organization: dis
Date: Mon, 24 Aug 2020 09:28 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: Mon, 24 Aug 2020 09:28:15 -0000 (UTC)
Organization: dis
Lines: 39
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <XnsAC236A841C7E0admin127001@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>
Injection-Info: reader02.eternal-september.org; posting-host="16dd41ddef663530a738a766c0e9ee63";
logging-data="7907"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18/ygzE7U2Rin5d5RzVmsd8uF6yudfqmF8="
User-Agent: Xnews/2006.08.24
Cancel-Lock: sha1:S1RrXGPeyvDJNpuhmVl4m5J8jwA=
View all headers
On Mon, 24 Aug 2020 03:43:58 GMT, aen@nospicedham.spamtrap.com wrote:

On Sun, 23 Aug 2020 17:19:14 -0400, "Rick C. Hodgin"
<rick.c.hodgin@nospicedham.gmail.com> wrote:
...
        mov     ah,2ah
        int     21h
        mov     di,offset long_days
        std
        scasb
        mov     dx,di
        inc     dx
        mov     ah,9
        int     21h
        mov     dx,offset day
        int     21h
        ret
Try:
         mov     ah,2ah
         int     21h
         mov     di,long_days
         cld
         repne   scasb
         mov     dx,di
         mov     ah,9
         int     21h
         mov     dx,day
         int     21h
         ret
long_days db 0,"Sun$",1,"Mon$",2,"Tues$",3,"Wednes$"
          db 4,"Thurs$",5,"Fri$",6,"Satur$"
day db "day$"

Yup needs the 'rep'; we can assume 'cld' to save 1.


--
Bah, and indeed, Humbug.



Subject: Re: small asm code (compo?)
From: Kerr-Mudd,John
Newsgroups: comp.lang.asm.x86
Organization: dis
Date: Mon, 24 Aug 2020 09:32 UTC
References: 1 2 3 4 5
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: Mon, 24 Aug 2020 09:32:28 -0000 (UTC)
Organization: dis
Lines: 42
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <XnsAC236B3AF57ADadmin127001@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>
Injection-Info: reader02.eternal-september.org; posting-host="16dd41ddef663530a738a766c0e9ee63";
logging-data="7945"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19xwkMvOTPbdvI96/xQCxwcsGpubZqYe0s="
User-Agent: Xnews/2006.08.24
Cancel-Lock: sha1:9yvgr1O/s8hOLflz2vJMCjLlibc=
View all headers
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.



--
Bah, and indeed, Humbug.



Subject: Re: small asm code (compo?)
From: Kerr-Mudd,John
Newsgroups: comp.lang.asm.x86
Organization: dis
Date: Mon, 24 Aug 2020 09:39 UTC
References: 1 2 3 4 5
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: Mon, 24 Aug 2020 09:39:35 -0000 (UTC)
Organization: dis
Lines: 54
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <XnsAC236C700C230admin127001@144.76.35.198>
References: <XnsAC2181A62E105admin127001@144.76.35.198> <rhu7vb$vlp$1@dont-email.me> <5f42b78d.825092203@nntp.aioe.org> <rhum75$qc8$1@dont-email.me> <5f42f20d.840067937@nntp.aioe.org>
Injection-Info: reader02.eternal-september.org; posting-host="16dd41ddef663530a738a766c0e9ee63";
logging-data="26651"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX191DaBbn2W+PPqEKNblqrYMnNzQkSd91Dw="
User-Agent: Xnews/2006.08.24
Cancel-Lock: sha1:gxOBxZ/48CXotAgrDkge5fMrMCs=
View all headers
On Sun, 23 Aug 2020 22:51:17 GMT, aen@nospicedham.spamtrap.com wrote:

On Sun, 23 Aug 2020 17:14:13 -0400, "Rick C. Hodgin"
<rick.c.hodgin@nospicedham.gmail.com> wrote:
...
I would've found that bug yesterday or tomorrow. :-)

Yeah, it isn't Sunday every day :-)

I like the approach though, and it can easily be adapted to 3 letters:

mov ah,2ah
int 21h
mul byte [multiplier]
mov bx,ax
add bx,days
mov byte [bx+3],'$'
mov dx,bx
mov ah,9
int 21h
ret
days db "SunMonTueWedThuFriSat"
multiplier db 3

you can save 1 by inlining 'multiplier':

cpu 8086  ; show day str l52
org 0x100 ; mul inline num
         mov     ah,0x2A     ; get system date
         int     0x21        ; al daynum, 0=sun; cx:dx
        push ax
         mul byte [multiplier]
         mov bx,ax
         add bx,days
         mov byte [bx+dylth],'$'
        
multiplier equ $-2

         mov dx,bx
         mov ah,9
         int 21h
        pop ax
         inc ax
         mov ah,0x4C
         int 0x21

days db "SunMonTueWedThuFriSat"
dylth equ 3



--
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: Mon, 24 Aug 2020 12:45 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: aen...@nospicedham.spamtrap.com
Newsgroups: comp.lang.asm.x86
Subject: Re: small asm code (compo?)
Date: Mon, 24 Aug 2020 12:45:12 GMT
Organization: Aioe.org NNTP Server
Lines: 32
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <5f43b4fe.889973484@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> <rhumgj$sv4$1@dont-email.me> <XnsAC236A735C42Cadmin127001@144.76.35.198>
Injection-Info: reader02.eternal-september.org; posting-host="16dd41ddef663530a738a766c0e9ee63";
logging-data="15414"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/n+V35704QQqDNu9+MmZXLtpDnDZs48mg="
Cancel-Lock: sha1:Ib1BOFmCUJDwSVulaWc5wMHApTI=
View all headers
On Mon, 24 Aug 2020 09:27:52 -0000 (UTC), "Kerr-Mudd,John"
<notsaying@nospicedham.127.0.0.1> wrote:
...
All those extra '$'s! I can see no-one wants to set the return code on
exit, it adds to the fun of retaining the day number. 74 with rc
...
A return code is nice and shiny, but you need a way to see it.  In
DOSBox that will do it:
; nasm -f bin geterror.asm -o geterror.com
cpu 8086
org 100h
mov ah,4dh
int 21h
mov bx,outstr+3
..1: dec bx
xor ah,ah
div byte [ten]
or ah,30h
mov [bx],ah
test al,al
jne .1
mov ah,9
mov dx,bx
int 21h
ret
ten db 10
outstr db "   $"

Run it immediately after a program.
--
aen



Subject: Re: small asm code (compo?)
From: Rick C. Hodgin
Newsgroups: comp.lang.asm.x86
Organization: Liberty Software Foundation
Date: Mon, 24 Aug 2020 15:43 UTC
References: 1 2 3 4 5 6
Path: i2pn2.org!i2pn.org!news.swapon.de!eternal-september.org!feeder.eternal-september.org!reader01.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: Mon, 24 Aug 2020 11:43:27 -0400
Organization: Liberty Software Foundation
Lines: 47
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <ri0n6v$5vi$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> <rhumgj$sv4$1@dont-email.me>
<5f433771.857832031@nntp.aioe.org>
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="16dd41ddef663530a738a766c0e9ee63";
logging-data="9648"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1889uoBSCjeq7jE9OIV/KUNq1IDpNy+HkI="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
Thunderbird/68.10.0
Cancel-Lock: sha1:+EU0L1Pm0yFk0SpPLB76tUb7klQ=
View all headers
On 8/23/20 11:43 PM, aen@nospicedham.spamtrap.com wrote:
On Sun, 23 Aug 2020 17:19:14 -0400, "Rick C. Hodgin"
<rick.c.hodgin@nospicedham.gmail.com> wrote:
...
         mov     ah,2ah
         int     21h
         mov     di,offset long_days
         std
         scasb
         mov     dx,di
         inc     dx
         mov     ah,9
         int     21h
         mov     dx,offset day
         int     21h
         ret
Try:
          mov     ah,2ah
          int     21h
          mov     di,long_days
          cld
          repne   scasb

I would've found that too on any day other than Sunday.

          mov     dx,di
          mov     ah,9
          int     21h
          mov     dx,day
          int     21h
          ret
long_days db 0,"Sun$",1,"Mon$",2,"Tues$",3,"Wednes$"
           db 4,"Thurs$",5,"Fri$",6,"Satur$"
day db "day$"

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.

--
Rick C. Hodgin



Subject: Re: small asm code (compo?)
From: Kerr-Mudd,John
Newsgroups: comp.lang.asm.x86
Organization: dis
Date: Mon, 24 Aug 2020 16:50 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: Mon, 24 Aug 2020 16:50:35 -0000 (UTC)
Organization: dis
Lines: 42
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <XnsAC23B582B4AF6admin127001@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>
Injection-Info: reader02.eternal-september.org; posting-host="16dd41ddef663530a738a766c0e9ee63";
logging-data="19833"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Zt4y74DSRVnQuqiHAfn1R1/z/8kkkyjU="
User-Agent: Xnews/2006.08.24
Cancel-Lock: sha1:xsi4rzpZr+LJ81Q8ca/os6Z3ulU=
View all headers
On Mon, 24 Aug 2020 12:45:12 GMT, aen@nospicedham.spamtrap.com wrote:

On Mon, 24 Aug 2020 09:27:52 -0000 (UTC), "Kerr-Mudd,John"
<notsaying@nospicedham.127.0.0.1> wrote:
...
All those extra '$'s! I can see no-one wants to set the return code on
exit, it adds to the fun of retaining the day number. 74 with rc
...
A return code is nice and shiny, but you need a way to see it.  In
DOSBox that will do it:

well I was wrapping stuff up in a DOS Batch, back then.
So it was "if it's Wednesday run a backup" style of thing.

; nasm -f bin geterror.asm -o geterror.com
cpu 8086
org 100h
mov ah,4dh
int 21h
mov bx,outstr+3
.1: dec bx
xor ah,ah
div byte [ten]
or ah,30h
mov [bx],ah
test al,al
jne .1
mov ah,9
mov dx,bx
int 21h
ret
ten db 10
outstr db "   $"

Run it immediately after a program.


I get 0 every time under XP, but thanks.

--
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: Mon, 24 Aug 2020 19:28 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: Mon, 24 Aug 2020 19:28:10 GMT
Organization: Aioe.org NNTP Server
Lines: 31
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <5f441112.913545750@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> <rhumgj$sv4$1@dont-email.me> <XnsAC236A735C42Cadmin127001@144.76.35.198> <5f43b4fe.889973484@nntp.aioe.org> <XnsAC23B582B4AF6admin127001@144.76.35.198>
Injection-Info: reader02.eternal-september.org; posting-host="16dd41ddef663530a738a766c0e9ee63";
logging-data="13880"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/A51NZVjqPHOzfZ9mV4/LYfuy/PhBg4xo="
Cancel-Lock: sha1:LK295MbCe7PBzU99BmcZ0FjFdaA=
View all headers
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.
--
aen



Subject: Re: small asm code (compo?)
From: aen...@nospicedham.spamtrap.com
Newsgroups: comp.lang.asm.x86
Organization: Aioe.org NNTP Server
Date: Mon, 24 Aug 2020 20:13 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: Mon, 24 Aug 2020 20:13:44 GMT
Organization: Aioe.org NNTP Server
Lines: 34
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <5f441ab6.916013671@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> <rhumgj$sv4$1@dont-email.me> <5f433771.857832031@nntp.aioe.org> <ri0n6v$5vi$1@dont-email.me>
Injection-Info: reader02.eternal-september.org; posting-host="16dd41ddef663530a738a766c0e9ee63";
logging-data="8307"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/dLPbdjxfWebjfVEQWgA39ax/coCa2eug="
Cancel-Lock: sha1:KsdUq7P16FoP8pZ35kEh4YuABbQ=
View all headers
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.
--
aen



Subject: Re: small asm code (compo?)
From: Rick C. Hodgin
Newsgroups: comp.lang.asm.x86
Organization: Liberty Software Foundation
Date: Tue, 25 Aug 2020 02:54 UTC
References: 1 2 3 4 5
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader01.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: Mon, 24 Aug 2020 22:54:35 -0400
Organization: Liberty Software Foundation
Lines: 101
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <ri1uhd$7a2$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> <rhumgj$sv4$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="be53ca76e164e38d800f08507068f125";
logging-data="11138"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/buYtTmob962cmXnv7+ptm5RNz9hq0bK0="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
Thunderbird/68.10.0
Cancel-Lock: sha1:EyhmjEUsDh5PXFquuLJLU7QVNS8=
View all headers
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?)

21 bytes code plus 47 bytes data = 68 bytes.

.MODEL small
.8086

.data
     long_days BYTE 0,"Sun$"
               BYTE 1,"Mon$"
               BYTE 2,"Tues$"
               BYTE 3,"Wednes$"
               BYTE 4,"Thurs$"
               BYTE 5,"Fri$"
               BYTE 6,"Satur$"
     day BYTE "day$"

.code
     test2_ PROC PUBLIC
         mov     ah,2ah
         int     21h
         mov     di,offset long_days
         std
         scasb
         mov     dx,di
         inc     dx
         mov     ah,9
         int     21h
         mov     dx,offset day
         int     21h
         ret
     test2_ ENDP

END

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.

     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.

--
Rick C. Hodgin



Subject: Re: small asm code (compo?)
From: aen...@nospicedham.spamtrap.com
Newsgroups: comp.lang.asm.x86
Organization: Aioe.org NNTP Server
Date: Tue, 25 Aug 2020 05:34 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: aen...@nospicedham.spamtrap.com
Newsgroups: comp.lang.asm.x86
Subject: Re: small asm code (compo?)
Date: Tue, 25 Aug 2020 05:34:01 GMT
Organization: Aioe.org NNTP Server
Lines: 28
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <5f44a1ae.950565390@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>
Injection-Info: reader02.eternal-september.org; posting-host="be53ca76e164e38d800f08507068f125";
logging-data="2580"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/9pGQPu65ZVkMCKMLFg6i3mtRTYyG5l6E="
Cancel-Lock: sha1:4Ikau9SqGm8DEbGWkbylRHdJpjk=
View all headers
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$"
--
aen



Pages:123
rocksolid light 0.7.2
clearneti2ptor