diff options
Diffstat (limited to 'map65/libm65/set.f90')
| -rw-r--r-- | map65/libm65/set.f90 | 47 |
1 files changed, 16 insertions, 31 deletions
diff --git a/map65/libm65/set.f90 b/map65/libm65/set.f90 index ff767988..4bf3a30f 100644 --- a/map65/libm65/set.f90 +++ b/map65/libm65/set.f90 @@ -1,31 +1,16 @@ -subroutine set(a,y,n) - real y(n) - do i=1,n - y(i)=a - enddo - return -end subroutine set - -subroutine move(x,y,n) - real x(n),y(n) - do i=1,n - y(i)=x(i) - enddo - return -end subroutine move - -subroutine zero(x,n) - real x(n) - do i=1,n - x(i)=0.0 - enddo - return -end subroutine zero - -subroutine add(a,b,c,n) - real a(n),b(n),c(n) - do i=1,n - c(i)=a(i)+b(i) - enddo - return -end subroutine add +module set_mod + implicit none +contains + + subroutine move(x,y,n) + implicit none + integer, intent(in) :: n + integer, intent(in) :: x(n) + integer, intent(out) :: y(n) + integer :: i + do i=1,n + y(i)=x(i) + enddo + end subroutine move + +end module set_mod |
