[MSX] print text in mode screen2 with definition characters in code assembler

2009-07-23 Thread andrea gasparrini
Hi Guys,

I have a problem, I do not succeed to make print text or other character in 
basic. Than the definition for characters is in code assembler.

If somebody it is available to help me, I I will send off him the source and 
the binary file in matter to the problem. 

Best Great
Andrea from Italy


 




  
___
MSX mailing list (msx@stack.nl)
Info page: http://lists.stack.nl/mailman/listinfo/msx


Re: [MSX] print text in mode screen2 with definition characters in code assembler

2009-07-23 Thread Albert Beevendorp

At 15:47 23-7-09 , you wrote:

I have a problem, I do not succeed to make print text or other character in
basic. Than the definition for characters is in code assembler.


Use the GRP: device.


GreeTz, BiFi

Visit my Home Page at www.bifi.msxnet.org
mail me at: b...@msxnet.org
FTP: ftp.bifi.msxnet.org
___
MSX mailing list (msx@stack.nl)
Info page: http://lists.stack.nl/mailman/listinfo/msx


Re: [MSX] print text in mode screen2 with definition characters in code assembler

2009-07-23 Thread Patriek Lesparre

andrea gasparrini wrote:
I have a problem, I do not succeed to make print text or other character in 
basic. Than the definition for characters is in code assembler.


PRINT does not work in SCREEN2, so you must use VPOKE into the Name 
Table directly.


Alternatively, it's possible to fool BASIC into thinking it's working in 
SCREEN1. I doubt POKEHFCAF,1 will be enough to do that, but it just 
might work anyway.


Patriek
___
MSX mailing list (msx@stack.nl)
Info page: http://lists.stack.nl/mailman/listinfo/msx


Re: [MSX] print text in mode screen2 with definition characters in code assembler

2009-07-23 Thread andrea gasparrini
Hi Albert Beevendorp,

I have already tried with OPENGRP:AS#1, but it doesn't work!!!

How I can then done work this programm??

See you later.
Andrea from Italy


--- Gio 23/7/09, Albert Beevendorp b...@msxnet.org ha scritto:

Da: Albert Beevendorp b...@msxnet.org
Oggetto: Re: [MSX] print text in mode screen2 with definition characters in 
code assembler
A: msx@stack.nl
Data: Giovedì 23 luglio 2009, 15:53

At 15:47 23-7-09 , you wrote:
I have a problem, I do not succeed to make print text or other character in
basic. Than the definition for characters is in code assembler.

Use the GRP: device.


GreeTz, BiFi

Visit my Home Page at www.bifi.msxnet.org
mail me at: b...@msxnet.org
FTP: ftp.bifi.msxnet.org
___
MSX mailing list (msx@stack.nl)
Info page: http://lists.stack.nl/mailman/listinfo/msx



  
___
MSX mailing list (msx@stack.nl)
Info page: http://lists.stack.nl/mailman/listinfo/msx


[MSX] print text in mode screen2 with definition characters in code assembler

2009-07-23 Thread andrea gasparrini

Hello,


I sent you source file for definition characters for
 SCREEN2.
 I need of work in SCREEN2, for make scene background for
 new videogame
 for MSX1, then I need of this set characters and of to use
 command basic
 line, circle, draw and paint.

 I must understand as I can make for print characters in
 screen2 with
 this routine in assembler.

 I hope than you can help me, Please?' ^_^

 See you later.
 Bye bye
 Andrea from Italy










 
; *
;  Progetto videogioco Karate   Ching   by AGsoftware 2009
; *
;KARATE.BIN   23/07/09
; Definizione caratteri NAMCO per lo SCREEN2
; *
; Definizione sprites per lo SCREEN2 
; *


.org$D000 - 7

.db $fe
.dw startProgram,endProgram,startProgram

startProgram:

LDIRVM  .equ $005c  ; routine del BIOS usata per riempire la VRAM
CHGMOD  .equ $005f  ; routine del BIOS usata per inizializzare lo 
schermo (V9938)

CHRTBL1 .equ $0100  ; indirizzi tabelle delle forme +32*8
CHRTBL2 .equ $0900
CHRTBL3 .equ $1100

CLRTBL1 .equ $2100  ; indirizzi tabelle del colore +32*8
CLRTBL2 .equ $2900
CLRTBL3 .equ $3100

QTYFONT .equ $0300  ; 96*8 = 96 font

SPRTBL  .equ $3800  ; indirizzi tabelle definizione sprites
;SPRCLR .equ $1c00  ; indirizzi tabelle colore per sprites 
multicolore



; Inizializza i registri del VDP.
writeVDP:

di
pushaf
pushbc
pushde
pushhl

ld  a,15; colore primo piano(scritte)
ld  ($f3e9),a   ; indirizzo primo piano(scritte)
ld  a,1 ; colore sfondo
ld  ($f3ea),a   ; indirizzo sfondo

ld  a,1 ; colore bordo
ld  ($f3eb),a   ; indirizzo bordo
call$62 ; chiama alla bios rom 
  call  $cc ; key off


; SCREEN 2
ld  a,2
callCHGMOD



; SCREEN,2 = VDP(1)=98 = SPRITE16X16
ld  a,98
out ($99),a
ld  a,1+128
out ($99),a

; Imposta la forma dei font
ld  hl,FONT_TBL
ld  de,CHRTBL1
ld  bc,QTYFONT
callLDIRVM
ld  hl,FONT_TBL
ld  de,CHRTBL2
ld  bc,QTYFONT
callLDIRVM
ld  hl,FONT_TBL
ld  de,CHRTBL3
ld  bc,QTYFONT
callLDIRVM

; Imposta la tabella colore dei font
ld  hl,COLOR_TBL
ld  de,CLRTBL1
ld  bc,QTYFONT
callLDIRVM
ld  hl,COLOR_TBL
ld  de,CLRTBL2
ld  bc,QTYFONT
callLDIRVM
ld  hl,COLOR_TBL
ld  de,CLRTBL3
ld  bc,QTYFONT
callLDIRVM

;Alloca la forma di 'COIN' in tabella ASCII
ld  hl,COIN
ld  de,CHRTBL1+(144*8)-$100
ld  bc,4*8
callLDIRVM
ld  hl,COIN
ld  de,CHRTBL2+(144*8)-$100
ld  bc,4*8
callLDIRVM
ld  hl,COIN
ld  de,CHRTBL3+(144*8)-$100
ld  bc,4*8
callLDIRVM

;Alloca il colore di 'COIN' in tabella ASCII
ld  hl,COIN_COLOR
ld  de,CLRTBL1+(144*8)-$100
ld  bc,4*8
callLDIRVM
ld  hl,COIN_COLOR
ld  de,CLRTBL2+(144*8)-$100
ld  bc,4*8
callLDIRVM
ld  hl,COIN_COLOR
ld  de,CLRTBL3+(144*8)-$100
ld  bc,4*8
callLDIRVM

;Alloca la forma di 'WALL' in tabella ASCII
ld  hl,WALL
ld  de,CHRTBL1+(152*8)-$100
ld  bc,8
callLDIRVM
ld  hl,WALL
ld  de,CHRTBL2+(152*8)-$100
ld  bc,8
callLDIRVM
ld  hl,WALL
ld  de,CHRTBL3+(152*8)-$100
ld  bc,8
callLDIRVM

;Alloca il colore di 'WALL' in tabella ASCII
ld  hl,WALL_COLOR
ld  de,CLRTBL1+(152*8)-$100
ld  bc,8
callLDIRVM
ld  hl,WALL_COLOR
ld  de,CLRTBL2+(152*8)-$100
ld  bc,8
callLDIRVM
ld  hl,WALL_COLOR
ld  de,CLRTBL3+(152*8)-$100
ld  bc,8
callLDIRVM

;Alloca la forma di 'GRAPES' in tabella ASCII
ld  hl,GRAPES
ld  de,CHRTBL1+(160*8)-$100
ld  bc,4*8
callLDIRVM
ld  hl,GRAPES
ld  de,CHRTBL2+(160*8)-$100
ld  bc,4*8
callLDIRVM
ld  hl,GRAPES
ld  de,CHRTBL3+(160*8)-$100
ld  bc,4*8
 

Re: [MSX] print text in mode screen2 with definition characters in code assembler

2009-07-23 Thread andrea gasparrini



--- Gio 23/7/09, andrea gasparrini andreagasparr...@yahoo.it ha scritto:

 Da: andrea gasparrini andreagasparr...@yahoo.it
 Oggetto: Re: [MSX] print text in mode screen2 with definition characters in 
 code assembler
 A: Patriek Lesparre msxl...@xs4all.nl
 Data: Giovedì 23 luglio 2009, 17:41
 Hi Patriek,
 
 Ok, I to use only characters print
 Then, How I can make PRINT with CHARACTER with VPOKE 
 IN SCREEN2 ??
 
 See you later
 Andrea
 
 
 
 --- Gio 23/7/09, Patriek Lesparre msxl...@xs4all.nl
 ha scritto:
 
  Da: Patriek Lesparre msxl...@xs4all.nl
  Oggetto: Re: [MSX] print text in mode screen2 with
 definition characters in code assembler
  A: andrea gasparrini andreagasparr...@yahoo.it
  Data: Giovedì 23 luglio 2009, 17:29
  Hi Andrea,
  
  You can't use characters and LINE/CIRCLE/DRAW/PAINT
  together.
  LINE etc. can only be used on bitmap screenmodes. This
 is
  why MSX-BASIC treats SCREEN2 as a bitmap mode, not as
 a
  character mode. PRINT only works on character modes.
  
  Greetz,
  Patriek
  
  andrea gasparrini wrote:
   *Hi Patriek Lesparre,
   
   I sent you source file for definition characters
 for
  SCREEN2.
   I need of work in SCREEN2, for make scene
 background
  for new videogame
   for MSX1, then I need of this set characters and
 of to
  use command basic
   line, circle, draw and paint.
   
   I must understand as I can make for print
 characters
  in screen2 with
   this routine in assembler.
   
   I hope than you can help me, Please?' ^_^
   
   See you later.
   Bye bye
   Andrea from Italy
   
  
  
 
 
 
 


  
___
MSX mailing list (msx@stack.nl)
Info page: http://lists.stack.nl/mailman/listinfo/msx


Re: [MSX] print text in mode screen2 with definition characters in code assembler

2009-07-23 Thread andrea gasparrini



--- Gio 23/7/09, andrea gasparrini andreagasparr...@yahoo.it ha scritto:

 Da: andrea gasparrini andreagasparr...@yahoo.it
 Oggetto: Re: [MSX] print text in mode screen2 with definition characters in 
 code assembler
 A: msx@stack.nl
 Data: Giovedì 23 luglio 2009, 18:02
 
 
 --- Gio 23/7/09, andrea gasparrini andreagasparr...@yahoo.it
 ha scritto:
 
  Da: andrea gasparrini andreagasparr...@yahoo.it
  Oggetto: Re: [MSX] print text in mode screen2 with
 definition characters in code assembler
  A: Patriek Lesparre msxl...@xs4all.nl
  Data: Giovedì 23 luglio 2009, 17:41
  Hi Patriek,
  
  Ok, I to use only characters print
  Then, How I can make PRINT with CHARACTER with VPOKE 
  IN SCREEN2 ??
  
  See you later
  Andrea
  
  
  
  --- Gio 23/7/09, Patriek Lesparre msxl...@xs4all.nl
  ha scritto:
  
   Da: Patriek Lesparre msxl...@xs4all.nl
   Oggetto: Re: [MSX] print text in mode screen2
 with
  definition characters in code assembler
   A: andrea gasparrini andreagasparr...@yahoo.it
   Data: Giovedì 23 luglio 2009, 17:29
   Hi Andrea,
   
   You can't use characters and
 LINE/CIRCLE/DRAW/PAINT
   together.
   LINE etc. can only be used on bitmap screenmodes.
 This
  is
   why MSX-BASIC treats SCREEN2 as a bitmap mode,
 not as
  a
   character mode. PRINT only works on character
 modes.
   
   Greetz,
   Patriek
   
   andrea gasparrini wrote:
*Hi Patriek Lesparre,

I sent you source file for definition
 characters
  for
   SCREEN2.
I need of work in SCREEN2, for make scene
  background
   for new videogame
for MSX1, then I need of this set characters
 and
  of to
   use command basic
line, circle, draw and paint.

I must understand as I can make for print
  characters
   in screen2 with
this routine in assembler.

I hope than you can help me, Please?' ^_^

See you later.
Bye bye
Andrea from Italy

   
   
  
  
  
  
 
 
 
 


  
___
MSX mailing list (msx@stack.nl)
Info page: http://lists.stack.nl/mailman/listinfo/msx